diff options
Diffstat (limited to 'modules/auto_mode.py')
| -rw-r--r-- | modules/auto_mode.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/auto_mode.py b/modules/auto_mode.py index 08648ca3..d1851a58 100644 --- a/modules/auto_mode.py +++ b/modules/auto_mode.py @@ -1,11 +1,9 @@ -from src import Utils +from src import ModuleManager, Utils -class Module(object): +@Utils.export("channelset", {"setting": "automode", + "help": "Disable/Enable automode", "validate": Utils.bool_or_none}) +class Module(ModuleManager.BaseModule): _name = "AutoMode" - def __init__(self, bot, events, exports): - exports.add("channelset", {"setting": "automode", - "help": "Disable/Enable automode", - "validate": Utils.bool_or_none}) def _check_modes(self, channel, user): identified_account = user.get_identified_account() |
