From b5d4c10cbcaa141ac23411ee20659f2e5614dbd0 Mon Sep 17 00:00:00 2001 From: eatdostacos <64234158+eatdostacos@users.noreply.github.com> Date: Wed, 27 May 2020 12:45:25 -0700 Subject: [PATCH] Corrected a place to the new commandsVerify --- bot/modules/commandsV2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/modules/commandsV2.js b/bot/modules/commandsV2.js index c1b4719..c3dd81f 100644 --- a/bot/modules/commandsV2.js +++ b/bot/modules/commandsV2.js @@ -49,9 +49,9 @@ let checkForCommand = function(message) { }); Object.keys(commandsVerify).forEach(command => { //if a command is found - if (!message.author.bot && message.content.toLowerCase().indexOf(command.toLowerCase()) >= 0 && commands[command].operation === 'send') { + if (!message.author.bot && message.content.toLowerCase().indexOf(command.toLowerCase()) >= 0 && commandsVerify[command].operation === 'send') { //send a message to the channel according to the config - message.channel.send('', new Discord.RichEmbed(commands[command].bundle)); + message.channel.send('', new Discord.RichEmbed(commandsVerify[command].bundle)); } }); if (firstRun) {