From 6eb8b1ba6d9aaaf7df42f3d705149f02b6a1b871 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 27 Sep 2018 12:08:07 +0100 Subject: Move all exports to @Utils.export calls --- modules/auto_mode.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'modules/auto_mode.py') 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() -- cgit v1.3.1-10-gc9f91