This commit is contained in:
dakedres 2023-05-18 21:54:21 -06:00
parent ea6997ac48
commit 08a387b1a9
2 changed files with 17 additions and 17 deletions

View File

@ -3,6 +3,8 @@
A discord bot for metaphorically "rolling dice"/generating random values. Made for use with Weaverdice systems.
Icon by [Zauromoun]()
## Features
- Cool ez syntax blatantly copied from [rollem.rocks](https://rollem.rocks):
> 2d6 - 1

View File

@ -60,26 +60,24 @@ const handleMessage = (message, respond) => {
break
}
if(dice.operation) {
switch(dice.operation) {
case '+':
result += dice.modifier
break
switch(dice.operation) {
case '+':
result += dice.modifier
break
case '-':
result -= dice.modifier
break
case '-':
result -= dice.modifier
break
case 'x':
operationSymbol = '*'
case '*':
result = result * dice.modifier
break
case 'x':
operationSymbol = '*'
case '*':
result = result * dice.modifier
break
case '/':
result = result / dice.modifier
break
}
case '/':
result = result / dice.modifier
break
}
if(dice.description)