aboutsummaryrefslogtreecommitdiff
path: root/modules/lastfm.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-19 13:25:12 +0100
committerGravatar jesopo2018-09-19 13:25:12 +0100
commitfcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch)
tree0015e3da000323b8f576f3303807176f1f4ea794 /modules/lastfm.py
parentFix some styling in ducks.py (diff)
signature
Refactor everything to use delimited events
Diffstat (limited to 'modules/lastfm.py')
-rw-r--r--modules/lastfm.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/lastfm.py b/modules/lastfm.py
index 80204a3f..e448d9ea 100644
--- a/modules/lastfm.py
+++ b/modules/lastfm.py
@@ -11,9 +11,8 @@ class Module(object):
exports.add("set", {"setting": "lastfm",
"help": "Set username on last.fm"})
- events.on("received").on("command").on("np",
- "listening", "nowplaying").hook(self.np,
- help="Get the last listened to track from a user",
+ events.on("received.command").on("np", "listening", "nowplaying"
+ ).hook(self.np, help="Get the last listened to track from a user",
usage="[username]")
def np(self, event):