mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 09:37:27 +00:00
Update Mention Check
This commit is contained in:
parent
cbe3f032fb
commit
7baefbf774
1 changed files with 2 additions and 2 deletions
|
@ -167,10 +167,10 @@ function checkMessageForCommand(msg, isEdit) {
|
|||
} else {
|
||||
//message isn't a command or is from us
|
||||
//drop our own messages to prevent feedback loops
|
||||
if (msg.author == bot.user) {
|
||||
if (msg.author === bot.user) {
|
||||
return;
|
||||
}
|
||||
if (msg.author !== bot.user && msg.isMentioned(bot.user)) {
|
||||
if (msg.author !== bot.user && msg.MessageMentions.equals(bot.user)) {
|
||||
msg.channel.send('yes?'); //using a mention here can lead to looping
|
||||
} else {
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue