r/programmingrequests • u/FutilityJones • Oct 06 '20
Discord bot Yet another dice roller discord bot
I am looking for a dice rolling bot that is a little more specific than dice maiden or those like it. The system only uses d10s, but ideally I would like the bot to calculate "hits."
1= -1
2-5=0
6-9=1
10=2
So, if I rolled 3d10 and rolled a 1, 6, and 10 it would show the total as 2(-1,1,2). If I rolled 4d10 +5 and rolled 2, 4, 8, 9 it would show a total of 7 (2 total hits +5). This is the only calculation it would need to do (number of successes [-1,0,1,2]+x=total).
1
Upvotes
1
u/InternationalBeing Nov 11 '20
Hey there! I just saw your request and wrote the bot. The message needs to be in the Format
!roll xd10+y
With x and y being numbers.
Do you need any help with the setup? DM me for more Infos :)
1
u/InternationalBeing Nov 12 '20
Here is the code for the bot. I hope it works well enough for you :)