From 7baefbf7742410968242f9e76f773ea7e36ab861 Mon Sep 17 00:00:00 2001 From: Ralph Date: Mon, 5 Apr 2021 11:43:43 -0400 Subject: [PATCH] Update Mention Check --- bot/bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { }