update to sclude bots from spam detection

This commit is contained in:
MSFTserver 2017-11-01 16:21:57 -07:00
parent c83169a2ab
commit 915927e51e
2 changed files with 2 additions and 2 deletions

View file

@ -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){

View file

@ -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