diff options
| author | 2018-10-10 10:42:41 +0100 | |
|---|---|---|
| committer | 2018-10-10 10:42:41 +0100 | |
| commit | 376825ea96099efc0f5e890370a417db1902df1a (patch) | |
| tree | 456f70d784e9b63cbc70b167380d95000d5e4030 /modules/youtube.py | |
| parent | Remove debug print in src.utils.http (diff) | |
| signature | ||
Mark command hooks that are aliases ('g' vs 'google')
Diffstat (limited to 'modules/youtube.py')
| -rw-r--r-- | modules/youtube.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/youtube.py b/modules/youtube.py index 0e976aec..4beb3bb7 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -71,7 +71,8 @@ class Module(ModuleManager.BaseModule): video_id = search_page["items"][0]["id"]["videoId"] return "https://youtu.be/%s" % video_id - @utils.hook("received.command.yt|youtube") + @utils.hook("received.command.yt", alias_of="youtube") + @utils.hook("received.command.youtube") def yt(self, event): """ :help: Find a video on youtube |
