Merge where I left backend-frameworkification #2

Manually merged
bss merged 18 commits from backend-frameworkification into master 2021-04-24 15:36:23 -05:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit ca8798453c - Show all commits

View File

@ -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+(.*)$',