From c8ae0f291fe38a1a56178304e117bdd71552faa4 Mon Sep 17 00:00:00 2001 From: dakedres Date: Mon, 22 May 2023 16:06:15 -0600 Subject: [PATCH] Description condition merging --- README.md | 4 ++-- package.json | 2 +- src/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 98c7006..00cc8ea 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,8 @@ Icon by [Zauromoun](https://www.tumblr.com/zauromoun) - Macro modifiers! > ╭ /eatpant +1 > 'you absorb the nutrients of the pant', ` 5 ` ⟵ [4] 1d6 + 1 -> ╭ /eatpant 2h6+3 -> 'become pant', ` 9 ` ⟵ [5, 6] 2h6 + 3 +> ╭ /eatpant 2h6+3; nirvana: +> 'nirvana:', 'become pant', ` 9 ` ⟵ [5, 6] 2h6 + 3 - Command editing and recalculation! > There is no demonstration for this diff --git a/package.json b/package.json index 565a6fc..1cf58a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dicedicedice", - "version": "1.3.0", + "version": "1.3.1", "description": "Dice bot", "main": "src/index.js", "scripts": { diff --git a/src/index.js b/src/index.js index 7525fe7..3278bee 100644 --- a/src/index.js +++ b/src/index.js @@ -462,7 +462,7 @@ const handleCommand = async interaction => { for(let [ key, value ] of Object.entries(optionDice)) { if(value) - dice[key] = value + dice[key] = Array.isArray(value) ? value.concat(dice[key]) : value } }