diff options
| author | 2018-10-10 10:42:41 +0100 | |
|---|---|---|
| committer | 2018-10-10 10:42:41 +0100 | |
| commit | 376825ea96099efc0f5e890370a417db1902df1a (patch) | |
| tree | 456f70d784e9b63cbc70b167380d95000d5e4030 /modules/lastfm.py | |
| parent | Remove debug print in src.utils.http (diff) | |
| signature | ||
Mark command hooks that are aliases ('g' vs 'google')
Diffstat (limited to 'modules/lastfm.py')
| -rw-r--r-- | modules/lastfm.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/lastfm.py b/modules/lastfm.py index 31cf1cfd..e67c6af1 100644 --- a/modules/lastfm.py +++ b/modules/lastfm.py @@ -9,7 +9,9 @@ URL_SCROBBLER = "http://ws.audioscrobbler.com/2.0/" class Module(ModuleManager.BaseModule): _name = "last.fm" - @utils.hook("received.command.np|listening|nowplaying") + @utils.hook("received.command.np", alias_of="nowplaying") + @utils.hook("received.command.listening", alias_of="nowplaying") + @utils.hook("received.command.nowplaying") def np(self, event): """ :help: Get the last listened to track from a user |
