mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
update to sclude bots from spam detection
This commit is contained in:
parent
c83169a2ab
commit
915927e51e
2 changed files with 2 additions and 2 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){
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
},
|
||||
"spamdetection":{
|
||||
"channels": ["324400517075959808","373251793498406912"], // Channels excluded from Spam Detection
|
||||
"users" : ["244245498746241025"] // Users to exclude from Spam Detection (include other bots here)
|
||||
"users" : ["244245498746241025"] // Users to exclude from Spam Detection
|
||||
},
|
||||
"hashbot":{
|
||||
"channels": ["374221161367601152"], // Channels Hash Bot is allowed to post in
|
||||
|
|
Loading…
Add table
Reference in a new issue