From fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Sep 2018 13:25:12 +0100 Subject: Refactor everything to use delimited events --- modules/trakt.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/trakt.py') diff --git a/modules/trakt.py b/modules/trakt.py index 8d82896b..203cfae8 100644 --- a/modules/trakt.py +++ b/modules/trakt.py @@ -8,10 +8,9 @@ URL_TRAKTSLUG = "https://trakt.tv/%s/%s" class Module(object): def __init__(self, bot, events, exports): self.bot = bot - events.on("received").on("command").on("nowwatching", - "nw").hook(self.now_watching, - help="Get what you or another user is now watching " - "on trakt.tv", usage="[username]") + events.on("received.command").on("nowwatching", "nw").hook( + self.now_watching, usage="[username]", + help="Get what you or another user is now watching on trakt.tv") exports.add("set", {"setting": "trakt", "help": "Set username on trakt.tv"}) -- cgit v1.3.1-10-gc9f91