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/karma.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/karma.py') diff --git a/modules/karma.py b/modules/karma.py index 7526812f..800f1bcc 100644 --- a/modules/karma.py +++ b/modules/karma.py @@ -13,10 +13,8 @@ class Module(object): bot.events.on("received").on("command").on("karma").hook( self.karma, help="Get your or someone else's karma", usage="[target]") - bot.events.on("boot").on("done").hook(self.boot_done) - def boot_done(self, event): - self.bot.events.on("postboot").on("configure").on( + bot.events.on("postboot").on("configure").on( "channelset").call(setting="karma-verbose", help="Disable/Enable automatically responding to karma changes", validate=Utils.bool_or_none) -- cgit v1.3.1-10-gc9f91