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/print_activity.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/print_activity.py') diff --git a/modules/print_activity.py b/modules/print_activity.py index 45b57e2a..f7e30feb 100644 --- a/modules/print_activity.py +++ b/modules/print_activity.py @@ -4,9 +4,8 @@ import datetime from src import EventManager, ModuleManager, utils -@utils.export("botset", {"setting": "print-motd", - "help": "Set whether I print /motd", "validate": utils.bool_or_none, - "example": "on"}) +@utils.export("botset", + utils.BoolSetting("print-motd", "Set whether I print /motd")) class Module(ModuleManager.BaseModule): def _print(self, event): self.bot.log.info("%s%s | %s", [ -- cgit v1.3.1-10-gc9f91