aboutsummaryrefslogtreecommitdiff
path: root/modules/urbandictionary.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 17:29:09 +0100
committerGravatar jesopo2018-09-30 17:29:09 +0100
commit10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch)
tree4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/urbandictionary.py
parentreceived.command takes a final [command] part (diff)
signature
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/urbandictionary.py')
-rw-r--r--modules/urbandictionary.py6
1 files changed, 3 insertions, 3 deletions
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="<term>")
+ @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>
"""
term = event["args"]
number = 1