aboutsummaryrefslogtreecommitdiff
path: root/modules/trakt.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/trakt.py
parentRemove debug print in src.utils.http (diff)
signature
Mark command hooks that are aliases ('g' vs 'google')
Diffstat (limited to 'modules/trakt.py')
-rw-r--r--modules/trakt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/trakt.py b/modules/trakt.py
index 4d125c54..8adc3cc4 100644
--- a/modules/trakt.py
+++ b/modules/trakt.py
@@ -7,7 +7,8 @@ URL_TRAKTSLUG = "https://trakt.tv/%s/%s"
@utils.export("set", {"setting": "trakt", "help": "Set username on trakt.tv"})
class Module(ModuleManager.BaseModule):
- @utils.hook("received.command.nowwatching|nw")
+ @utils.hook("received.command.nw", alias_of="nowwatching")
+ @utils.hook("received.command.nowwatching")
def now_watching(self, event):
"""
:help: Get what you or another user is now watching on trakt.tv