diff --git a/modules/Dice.py b/modules/Dice.py index 88b4da4..3c8e4cd 100644 --- a/modules/Dice.py +++ b/modules/Dice.py @@ -34,6 +34,13 @@ class Dice(Module): tokens = ['NUMBER', 'TEXT', 'ROLLSEP'] literals = ['#', '/', '+', '-', 'd'] + def __init__(self, irc, config, server): + """Set up XML-RPC methods.""" + + Module.__init__(self, irc, config, server) + + irc.xmlrpc_register_function(self.do_roll, "dice_roll") + def build(self): lex.lex(module=self) yacc.yacc(module=self)