diff options
| author | 2019-06-28 23:16:05 +0100 | |
|---|---|---|
| committer | 2019-06-28 23:16:05 +0100 | |
| commit | ae9d099a41b703ce875cf8746a94b6995bbaedfb (patch) | |
| tree | c389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/print_activity.py | |
| parent | message arg for HTTPWrongContentTypeException/HTTPParsingException (diff) | |
| signature | ||
Refactor set/channelset/serverset/botset in to 'utils.Setting' objects
Diffstat (limited to 'modules/print_activity.py')
| -rw-r--r-- | modules/print_activity.py | 5 |
1 files changed, 2 insertions, 3 deletions
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", [ |
