diff --git a/bot/modules/spam-detection.js b/bot/modules/spam-detection.js index 2732b90..590020c 100644 --- a/bot/modules/spam-detection.js +++ b/bot/modules/spam-detection.js @@ -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){ diff --git a/config/default.json.example b/config/default.json.example index ccc2a98..be29d84 100644 --- a/config/default.json.example +++ b/config/default.json.example @@ -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