diff --git a/bot/bot.js b/bot/bot.js index c1bf370..0f29c0d 100644 --- a/bot/bot.js +++ b/bot/bot.js @@ -167,10 +167,10 @@ function checkMessageForCommand(msg, isEdit) { } else { //message isn't a command or is from us //drop our own messages to prevent feedback loops - if (msg.author == bot.user) { + if (msg.author === bot.user) { return; } - if (msg.author !== bot.user && msg.isMentioned(bot.user)) { + if (msg.author !== bot.user && msg.MessageMentions.equals(bot.user)) { msg.channel.send('yes?'); //using a mention here can lead to looping } else { }