idkclub / dicebot

🎲 /roll support for Slack
https://dicebot.idk.club
The Unlicense
54 stars 20 forks source link

rolling 2 dice types #10

Closed OdedDeutch closed 8 years ago

OdedDeutch commented 8 years ago

One can roll 2d4+1 correctly but the 3d4+3d6 will interpreted as (3d4+3)+(1d6)

arkie commented 8 years ago

/roll 3d4 3d6 will do what you want. The primary issue here is that it's parsed left to right (via regex).

Feel free to reopen if would prefer syntax altered.

arkie commented 8 years ago

Actually fixed in last commit.

screen shot 2016-09-03 at 21 12 45