mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Corrected a place to the new commandsVerify
This commit is contained in:
parent
2e002a3972
commit
b5d4c10cbc
1 changed files with 2 additions and 2 deletions
|
@ -49,9 +49,9 @@ let checkForCommand = function(message) {
|
||||||
});
|
});
|
||||||
Object.keys(commandsVerify).forEach(command => {
|
Object.keys(commandsVerify).forEach(command => {
|
||||||
//if a command is found
|
//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
|
//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) {
|
if (firstRun) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue