From ca8798453c20138e4f7bb33e2d08091e856efb9f Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 24 Apr 2021 12:57:12 -0500 Subject: [PATCH] fix Dice plugin init --- dice/ircplugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dice/ircplugin.py b/dice/ircplugin.py index 99c7904..55fcb39 100644 --- a/dice/ircplugin.py +++ b/dice/ircplugin.py @@ -14,11 +14,12 @@ logger = logging.getLogger(__name__) class Dice(Plugin): """Roll simple or complex dice strings.""" - def __init__(self): + def __init__(self, bot, connection, event): """Set up the plugin.""" - super(Dice, self).__init__() self.roller = DiceRoller() + super(Dice, self).__init__(bot, connection, event) + def start(self): """Set up the handlers.""" self.connection.reactor.add_global_regex_handler(['pubmsg', 'privmsg'], r'^!roll\s+(.*)$',