Skip to content

Commit

Permalink
Fix dice command
Browse files Browse the repository at this point in the history
  • Loading branch information
evgfilim1 committed Feb 28, 2023
1 parent dcf17eb commit 8a7163a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userbot/commands/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def _str_die(self, node):
return ", ".join(the_rolls)


@commands.add("roll", "dice", usage="<dice_spec>")
@commands.add("roll", "dice", usage="<dice_spec...>")
async def dice(command: CommandObject) -> str:
"""Rolls dice according to `d20.roll` syntax.
More: https://github.com/avrae/d20#dice-syntax.
"""
return f"🎲 {d20.roll(command.args, stringifier=_HTMLDiceStringifier())}"
return f"🎲 {d20.roll(command.args[0], stringifier=_HTMLDiceStringifier())}"

0 comments on commit 8a7163a

Please sign in to comment.