From ae9d099a41b703ce875cf8746a94b6995bbaedfb Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 28 Jun 2019 23:16:05 +0100 Subject: Refactor set/channelset/serverset/botset in to 'utils.Setting' objects --- modules/bot_channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/bot_channel.py') diff --git a/modules/bot_channel.py b/modules/bot_channel.py index d7c7e8b2..32f3f1fc 100644 --- a/modules/bot_channel.py +++ b/modules/bot_channel.py @@ -2,8 +2,8 @@ from src import ModuleManager, utils -@utils.export("serverset", {"setting": "bot-channel", - "help": "Set main channel", "example": "#bitbot"}) +@utils.export("serverset", utils.Setting("bot-channel", + "Set main channel", example="#bitbot")) class Module(ModuleManager.BaseModule): @utils.hook("received.001") def do_join(self, event): -- cgit v1.3.1-10-gc9f91