aboutsummaryrefslogtreecommitdiff
path: root/modules/check_mode.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/check_mode.py')
-rw-r--r--modules/check_mode.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/check_mode.py b/modules/check_mode.py
index 788f573c..2d0298b6 100644
--- a/modules/check_mode.py
+++ b/modules/check_mode.py
@@ -1,10 +1,7 @@
+from src import ModuleManager, Utils
-
-class Module(object):
- def __init__(self, bot, events, exports):
- self.bot = bot
- events.on("preprocess.command").hook(self.preprocess_command)
-
+class Module(ModuleManager.BaseModule):
+ @Utils.hook("preprocess.command")
def preprocess_command(self, event):
if event["is_channel"] and event["hook"].kwargs.get(
"require_mode"):