Update bot.js

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

View file

@ -163,8 +163,9 @@ 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 {
}
}