From 376825ea96099efc0f5e890370a417db1902df1a Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 10 Oct 2018 10:42:41 +0100 Subject: Mark command hooks that are aliases ('g' vs 'google') --- modules/tweets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/tweets.py') 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 -- cgit v1.3.1-10-gc9f91