aboutsummaryrefslogtreecommitdiff
path: root/modules/lastfm.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/lastfm.py
parentreceived.command takes a final [command] part (diff)
signature
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/lastfm.py')
-rw-r--r--modules/lastfm.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/lastfm.py b/modules/lastfm.py
index d02abd6f..8febe3c0 100644
--- a/modules/lastfm.py
+++ b/modules/lastfm.py
@@ -9,10 +9,11 @@ URL_SCROBBLER = "http://ws.audioscrobbler.com/2.0/"
class Module(ModuleManager.BaseModule):
_name = "last.fm"
- @Utils.hook("received.command.np|listening|nowplaying", usage="[username]")
+ @Utils.hook("received.command.np|listening|nowplaying")
def np(self, event):
"""
- Get the last listened to track from a user
+ :help: Get the last listened to track from a user
+ :usage: [username]
"""
if event["args_split"]:
lastfm_username = event["args_split"][0]