From 376825ea96099efc0f5e890370a417db1902df1a Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 10 Oct 2018 10:42:41 +0100 Subject: Mark command hooks that are aliases ('g' vs 'google') --- modules/lastfm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/lastfm.py') 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 -- cgit v1.3.1-10-gc9f91