The Power of const

This commit is contained in:
Daniel Odendahl Jr
2017-04-03 22:31:19 +00:00
parent 4f0f1b4ad2
commit 76907549df
87 changed files with 525 additions and 558 deletions
-1
View File
@@ -31,7 +31,6 @@ module.exports = class ChooseCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
let choices = args.choices;
if (!choices.includes(' | ')) return message.say(':x: Error! Split your messages with a " | "!');
choices = choices.split(" | ");
choices = choices[Math.floor(Math.random() * choices.length)];
return message.say(`I choose ${choices}!`);