fix for mentions

This commit is contained in:
Ralph S 2022-01-03 11:05:35 -05:00
parent d16cdde103
commit 38d65b408c

View file

@ -163,9 +163,10 @@ function checkMessageForCommand(msg, isEdit) {
return; return;
} }
if (msg.author !== bot.user && msg.mentions.has(bot.user.id)) { if (msg.author !== bot.user && msg.mentions.has(bot.user.id)) {
if (!msg.content.includes("@here") || !msg.content.includes("@everyone")) { if (msg.content.includes('@here') || msg.content.includes('@everyone')) {
msg.channel.send('yes?'); //using a mention here can lead to looping return;
} }
msg.channel.send('yes?'); //using a mention here can lead to looping
} else { } else {
} }
} }