diff options
Diffstat (limited to 'modules/auto_mode.py')
| -rw-r--r-- | modules/auto_mode.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/auto_mode.py b/modules/auto_mode.py index 3e800591..08fd94de 100644 --- a/modules/auto_mode.py +++ b/modules/auto_mode.py @@ -1,13 +1,12 @@ import Utils class Module(object): - def __init__(self, bot, events): + def __init__(self, bot, events, exports): self.bot = bot - events.on("postboot").on("configure").on( - "channelset").assure_call(setting="automode", - help="Disable/Enable automode", - validate=Utils.bool_or_none) + exports.add("channelset", {"setting": "automode", + "help": "Disable/Enable automode", + "validate": Utils.bool_or_none}) events.on("channel").on("mode").hook(self.on_mode) events.on("received").on("join").hook(self.on_join) |
