aboutsummaryrefslogtreecommitdiff
path: root/modules/urbandictionary.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-10 10:42:41 +0100
committerGravatar jesopo2018-10-10 10:42:41 +0100
commit376825ea96099efc0f5e890370a417db1902df1a (patch)
tree456f70d784e9b63cbc70b167380d95000d5e4030 /modules/urbandictionary.py
parentRemove debug print in src.utils.http (diff)
signature
Mark command hooks that are aliases ('g' vs 'google')
Diffstat (limited to 'modules/urbandictionary.py')
-rw-r--r--modules/urbandictionary.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/urbandictionary.py b/modules/urbandictionary.py
index 2f86ff6b..314b492f 100644
--- a/modules/urbandictionary.py
+++ b/modules/urbandictionary.py
@@ -5,7 +5,8 @@ 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)
+ @utils.hook("received.command.ud", alias_of="urbandictionary")
+ @utils.hook("received.command.urbandictionary", min_args=1)
def ud(self, event):
"""
:help: Get the definition of a provided term from Urban Dictionary