mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Attempt fix for @here replies
This commit is contained in:
parent
2b912d7fd1
commit
ece306b9c2
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,9 @@ function checkMessageForCommand(msg, isEdit) {
|
||||||
if (msg.author === bot.user) {
|
if (msg.author === bot.user) {
|
||||||
return;
|
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
|
msg.channel.send('yes?'); //using a mention here can lead to looping
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue