add !dice as an alias of !roll

This commit is contained in:
jesopo 2019-09-26 14:06:58 +01:00
parent d6fa786806
commit 55c354cebb

View file

@ -9,6 +9,7 @@ RE_MODIFIERS = re.compile("([-+]\d+)")
class Module(ModuleManager.BaseModule):
@utils.hook("received.command.roll", min_args=1)
@utils.hook("received.command.dice", alias_of="roll")
def roll_dice(self, event):
"""
:help: Roll some dice, DND style