Open Nyhilo opened 1 year ago
It's finally time
Add a dice roller with the following features. The bot should reply to the message that triggered it
&roll NdK - rolls N K-sided dice. Returns results in the dice-maiden way, i.e.:
&roll NdK
&roll 5d6 Request: [5d6] Roll: [2, 5, 1, 6, 4] Result: 18
[5d6]
[2, 5, 1, 6, 4]
18
Support single, basic mathematical operations on the sum: +, -, *, and /. Dividing rounds up
+, -, *, and /
&roll 5d6 Request: [5d6] Roll: [2, 5, 1, 6, 4] Result: 18 &roll 5d6 + 4 Request: [5d6 + 4] Roll: [2, 5, 1, 6, 4] Result: 22
&roll 5d6 + 4 Request: [5d6 + 4] Roll: [2, 5, 1, 6, 4] Result: 22
[5d6 + 4]
22
All of these return the same result
&roll 5d6 +4 &roll 5d6+ 4 &roll 5d6+4 &roll 5d6 + 4
Division looks like
&roll 5d6 / 4 Request: [5d6 / 4] Roll: [2, 5, 1, 6, 4] Result: 5 (sums to 18, then divides by 4 and rounds 4.5 up)
[5d6 / 4]
5
4
4.5
It's finally time
Add a dice roller with the following features. The bot should reply to the message that triggered it
&roll NdK
- rolls N K-sided dice. Returns results in the dice-maiden way, i.e.:Support single, basic mathematical operations on the sum:
+, -, *, and /
. Dividing rounds upAll of these return the same result
Division looks like