From 8ec58dc59fe91f4fea812b0c2ad657a0f500d6b9 Mon Sep 17 00:00:00 2001 From: Marcus Netz Date: Tue, 24 Nov 2020 21:48:15 +0100 Subject: [PATCH] msg undefined --- src/commands/roll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/roll.js b/src/commands/roll.js index ccef856..116b0a4 100644 --- a/src/commands/roll.js +++ b/src/commands/roll.js @@ -13,7 +13,7 @@ module.exports = async (message, args, db) => { const a = Math.floor(Math.random() * diceValues) + 1; roll.push(a); } - if(numberOfDice = 1) { let = 'n';} + if(numberOfDice == 1) { let = 'n';} else { msg = ' ' + numberOfDice;} message.reply('Das sind deine Ergebnisse für deine' + msg + ' ' + diceValues + '-seitigen 🎲: ' + roll.join(', ') + '.'); }