From 0cc72d5d66bc3a6abf7757c7202905bd656ddf1d Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 26 Dec 2017 10:32:36 +0000 Subject: Added a "replay" system to EventManager hooks, to replay missed .calls --- modules/trakt.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/trakt.py') diff --git a/modules/trakt.py b/modules/trakt.py index 3e407752..39a039c3 100644 --- a/modules/trakt.py +++ b/modules/trakt.py @@ -8,14 +8,12 @@ URL_TRAKTSLUG = "https://trakt.tv/%s/%s" class Module(object): def __init__(self, bot): self.bot = bot - bot.events.on("boot").on("done").hook(self.boot_done) 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]") - def boot_done(self, event): - self.bot.events.on("postboot").on("configure").on("set" + bot.events.on("postboot").on("configure").on("set" ).call(setting="trakt", help="Set username on trakt.tv") def now_watching(self, event): -- cgit v1.3.1-10-gc9f91