diff options
| author | 2019-06-28 23:16:05 +0100 | |
|---|---|---|
| committer | 2019-06-28 23:16:05 +0100 | |
| commit | ae9d099a41b703ce875cf8746a94b6995bbaedfb (patch) | |
| tree | c389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/greeting.py | |
| parent | message arg for HTTPWrongContentTypeException/HTTPParsingException (diff) | |
Refactor set/channelset/serverset/botset in to 'utils.Setting' objects
Diffstat (limited to 'modules/greeting.py')
| -rw-r--r-- | modules/greeting.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/greeting.py b/modules/greeting.py index a1005436..9f5b9b78 100644 --- a/modules/greeting.py +++ b/modules/greeting.py @@ -2,9 +2,9 @@ from src import ModuleManager, utils -@utils.export("channelset", {"setting": "greeting", - "help": "Set a greeting to send to users when they join", - "example": "welcome to the channel!"}) +@utils.export("channelset", utils.Setting("greeting", + "Set a greeting to send to users when they join", + example="welcome to the channel!")) class Module(ModuleManager.BaseModule): @utils.hook("received.join") def join(self, event): |
