From 290ba0ba8df43a9ed2fc271be284c6dcdb1e23df Mon Sep 17 00:00:00 2001 From: Marcus Netz Date: Tue, 24 Nov 2020 20:52:03 +0100 Subject: [PATCH] Identifier 'command' has already been declared --- 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 38b631b..32eecd0 100644 --- a/src/commands/roll.js +++ b/src/commands/roll.js @@ -2,7 +2,7 @@ module.exports = async (message, args, db) => { let command = args.join('') let regex = /\s?[DdWw]\s?/; - let command = command.split(regex); + command = command.split(regex); if (command.length == 2){ let numberOfDice = command[0];