Skip to content

Commit

Permalink
Fix !roll with no arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 26, 2018
1 parent 35bc59c commit 0e30d1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def replacer(cls, match: Match) -> str:
async def roll(self, evt: MessageEvent, pattern: str) -> None:
if not pattern:
await evt.reply(str(self.randomize(1, 6)))
return
elif len(pattern) > 64:
await evt.reply("Bad pattern 3:<")
return
Expand Down

0 comments on commit 0e30d1b

Please sign in to comment.