From 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 30 Sep 2018 17:29:09 +0100 Subject: Switch to using docstring for usage, permission and require_mode --- modules/urbandictionary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/urbandictionary.py') diff --git a/modules/urbandictionary.py b/modules/urbandictionary.py index 6151afb8..2d5edd21 100644 --- a/modules/urbandictionary.py +++ b/modules/urbandictionary.py @@ -5,11 +5,11 @@ URL_URBANDICTIONARY = "http://api.urbandictionary.com/v0/define" REGEX_DEFNUMBER = re.compile("-n(\d+) \S+") class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.urbandictionary|ud", min_args=1, - usage="") + @Utils.hook("received.command.urbandictionary|ud", min_args=1) def ud(self, event): """ - Get the definition of a provided term from Urban Dictionary + :help: Get the definition of a provided term from Urban Dictionary + :usage: """ term = event["args"] number = 1 -- cgit v1.3.1-10-gc9f91