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/soundcloud.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/soundcloud.py') diff --git a/modules/soundcloud.py b/modules/soundcloud.py index 3737d223..fd7300c3 100644 --- a/modules/soundcloud.py +++ b/modules/soundcloud.py @@ -10,7 +10,8 @@ REGEX_SOUNDCLOUD = "https?://soundcloud.com/([^/]+)/([^/]+)" class Module(ModuleManager.BaseModule): _name = "SoundCloud" - @utils.hook("received.command.soundcloud|sc") + @utils.hook("received.command.sc", alias_of="soundcloud") + @utils.hook("received.command.soundcloud") def soundcloud(self, event): """ :help: Search SoundCloud -- cgit v1.3.1-10-gc9f91