aboutsummaryrefslogtreecommitdiff
path: root/modules/greeting.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-28 23:16:05 +0100
committerGravatar jesopo2019-06-28 23:16:05 +0100
commitae9d099a41b703ce875cf8746a94b6995bbaedfb (patch)
treec389ae3b967c43055a1c671b8cebf04db4e8f8b6 /modules/greeting.py
parentmessage 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.py6
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):