Description condition merging

This commit is contained in:
dakedres 2023-05-22 16:06:15 -06:00
parent 112e39c7fd
commit c8ae0f291f
3 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ Icon by [Zauromoun](https://www.tumblr.com/zauromoun)
- Macro modifiers! - Macro modifiers!
> ╭ /eatpant +1 > ╭ /eatpant +1
> 'you absorb the nutrients of the pant', ` 5 ` ⟵ [4] 1d6 + 1 > 'you absorb the nutrients of the pant', ` 5 ` ⟵ [4] 1d6 + 1
> ╭ /eatpant 2h6+3 > ╭ /eatpant 2h6+3; nirvana:
> 'become pant', ` 9 ` ⟵ [5, 6] 2h6 + 3 > 'nirvana:', 'become pant', ` 9 ` ⟵ [5, 6] 2h6 + 3
- Command editing and recalculation! - Command editing and recalculation!
> There is no demonstration for this > There is no demonstration for this

View File

@ -1,6 +1,6 @@
{ {
"name": "dicedicedice", "name": "dicedicedice",
"version": "1.3.0", "version": "1.3.1",
"description": "Dice bot", "description": "Dice bot",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {

View File

@ -462,7 +462,7 @@ const handleCommand = async interaction => {
for(let [ key, value ] of Object.entries(optionDice)) { for(let [ key, value ] of Object.entries(optionDice)) {
if(value) if(value)
dice[key] = value dice[key] = Array.isArray(value) ? value.concat(dice[key]) : value
} }
} }