Corrected a place to the new commandsVerify

This commit is contained in:
eatdostacos 2020-05-27 12:45:25 -07:00 committed by GitHub
parent 2e002a3972
commit b5d4c10cbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {