Update bot.js

This commit is contained in:
Ralph 2022-01-03 10:48:56 -05:00 committed by GitHub
parent 4d4643a893
commit d16cdde103
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,7 +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") {
if (!msg.content.includes("@here") || !msg.content.includes("@everyone")) {
msg.channel.send('yes?'); //using a mention here can lead to looping
}
} else {