aboutsummaryrefslogtreecommitdiff
path: root/modules/spotify.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/spotify.py
parentreceived.command takes a final [command] part (diff)
signature
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/spotify.py')
-rw-r--r--modules/spotify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/spotify.py b/modules/spotify.py
index 6816cd50..4c2d3c57 100644
--- a/modules/spotify.py
+++ b/modules/spotify.py
@@ -7,7 +7,8 @@ class Module(ModuleManager.BaseModule):
@Utils.hook("received.command.spotify", min_args=1)
def spotify(self, event):
"""
- Search for a track on spotify
+ :help: Search for a track on spotify
+ :usage: <term>
"""
page = Utils.get_url(URL_SPOTIFY, get_params={"type": "track",
"limit": 1, "q": event["args"]}, json=True)