aboutsummaryrefslogtreecommitdiff
path: root/modules/tweets.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/tweets.py
parentRemove debug print in src.utils.http (diff)
signature
Mark command hooks that are aliases ('g' vs 'google')
Diffstat (limited to 'modules/tweets.py')
-rw-r--r--modules/tweets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tweets.py b/modules/tweets.py
index 539506b9..b057dade 100644
--- a/modules/tweets.py
+++ b/modules/tweets.py
@@ -19,7 +19,8 @@ class Module(ModuleManager.BaseModule):
since, unit = utils.time_unit(seconds_since)
return "%s %s ago" % (since, unit)
- @utils.hook("received.command.tweet|tw")
+ @utils.hook("received.command.tw", alias_of="tweet")
+ @utils.hook("received.command.tweet")
def tweet(self, event):
"""
:help: Get/find a tweet