Update bot.js

This commit is contained in:
Ralph 2022-01-03 10:47:28 -05:00 committed by GitHub
parent ece306b9c2
commit 2a3ed12556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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