Identifier 'command' has already been declared

This commit is contained in:
Marcus Netz
2020-11-24 20:52:03 +01:00
parent bfc76c848c
commit 290ba0ba8d

View File

@ -2,7 +2,7 @@
module.exports = async (message, args, db) => { module.exports = async (message, args, db) => {
let command = args.join('') let command = args.join('')
let regex = /\s?[DdWw]\s?/; let regex = /\s?[DdWw]\s?/;
let command = command.split(regex); command = command.split(regex);
if (command.length == 2){ if (command.length == 2){
let numberOfDice = command[0]; let numberOfDice = command[0];