When rolling any dice +0, for example /roll d20+0 it triggers the "Invalid equation" message
I think it triggers because it separates terms and when evaluating this line:
|
if item and (item in ['+','-','/','*',')','('] or int(item)): |
int('0') is false, so I suggest replace
int(item) by
item.isdigit())
When rolling any dice +0, for example
/roll d20+0it triggers the "Invalid equation" messageI think it triggers because it separates terms and when evaluating this line:
rollem-telegram-bot/bot.py
Line 150 in 7e08127
int('0')is false, so I suggest replaceint(item)byitem.isdigit())