idkclub / dicebot

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

`1 - 1 = -2` #51

Closed eriksw closed 5 years ago

eriksw commented 5 years ago

This input /roll -1d-1 results in:

[user] rolled *1* - *1* = *-2*

Yes, it's a nonsense input, but it's a bit silly that the output can be a mathematically invalid expression.

JShillin commented 5 years ago

Looks like you have written -(1d)-1 so its actually -1 - 1 = -2

arkie commented 5 years ago

As explained by @JShillin, closing out as working as intended 👍