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/greeting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/greeting.py') 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): -- cgit v1.3.1-10-gc9f91