aboutsummaryrefslogtreecommitdiff
path: root/modules/trakt.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 17:29:09 +0100
committerGravatar jesopo2018-09-30 17:29:09 +0100
commit10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch)
tree4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/trakt.py
parentreceived.command takes a final [command] part (diff)
signature
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/trakt.py')
-rw-r--r--modules/trakt.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/trakt.py b/modules/trakt.py
index a902e9c1..f25a04ae 100644
--- a/modules/trakt.py
+++ b/modules/trakt.py
@@ -7,10 +7,11 @@ 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", usage="[username]")
+ @Utils.hook("received.command.nowwatching|nw")
def now_watching(self, event):
"""
- Get what you or another user is now watching on trakt.tv
+ :help: Get what you or another user is now watching on trakt.tv
+ :usage: [username]
"""
if event["args"]:
username = event["args_split"][0]