fix Dice plugin init
This commit is contained in:
parent
dc5f243608
commit
ca8798453c
@ -14,11 +14,12 @@ logger = logging.getLogger(__name__)
|
|||||||
class Dice(Plugin):
|
class Dice(Plugin):
|
||||||
"""Roll simple or complex dice strings."""
|
"""Roll simple or complex dice strings."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, bot, connection, event):
|
||||||
"""Set up the plugin."""
|
"""Set up the plugin."""
|
||||||
super(Dice, self).__init__()
|
|
||||||
self.roller = DiceRoller()
|
self.roller = DiceRoller()
|
||||||
|
|
||||||
|
super(Dice, self).__init__(bot, connection, event)
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
"""Set up the handlers."""
|
"""Set up the handlers."""
|
||||||
self.connection.reactor.add_global_regex_handler(['pubmsg', 'privmsg'], r'^!roll\s+(.*)$',
|
self.connection.reactor.add_global_regex_handler(['pubmsg', 'privmsg'], r'^!roll\s+(.*)$',
|
||||||
|
Loading…
Reference in New Issue
Block a user