mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Update spam-detection.js
This commit is contained in:
parent
6b856e4254
commit
024ec0a69e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ exports.antiSpam = function(bot) {
|
|||
|
||||
|
||||
bot.on('message', msg => {
|
||||
if(!inPrivate(msg) && hasPerms(msg) || hasExcludedSpamChannels(msg) || hasExcludedSpamUsers(msg)) {
|
||||
if(!inPrivate(msg) && hasPerms(msg) || msg.author.bot || hasExcludedSpamChannels(msg) || hasExcludedSpamUsers(msg)) {
|
||||
return
|
||||
}
|
||||
if(msg.author.id != bot.user.id){
|
||||
|
|
Loading…
Add table
Reference in a new issue