Attempt fix for @here replies

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

View file

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