eris-antispam
A npm package for discord bots made with eris https://npmjs.com/package/eris
Quick setup
const eris = ;const bot = "TOKEN" const erisAntiSpam = ;const erisAntiSpamClient = //Options; bot; erisAntiSpamClienterisAntiSpamClienterisAntiSpamClient bot
Options
warnEmit: Number Default: 3 //How many messages in your options.fetchedCacheTimeLimit before the warnEmit is emitedspamEmit: Number Default: 5 //How many messages in your options.fetchedCacheTimeLimit before the spamEmit is emitedheavySpamEmit: Number Default: 7 //How many messages in your options.fetchedCacheTimeLimit before the heavySpamEmit is emited ignoreBots: Boolean Default: true //If true the bot will not emit on bot spamignoreUsers: Array Default: //Users to not emit spam onignoreChannels: Array Default: //Channels to not emit onignoreRoles: Array Default: //Roles to not emit on, If a member has one of the roles in the array it will not emitignorePerms: Array Default: //Permissions to not emit on, If a member has one of the permissions it will not emit resetCache: Number Default: 1800000 //how long in mili seconds to reset the cachefetchedCacheTimeLimit: Number Default: 4000 //How old a message can be to be couted to spam amoutactionCooldowns: Number Default: 8000 //Min amout of time in mili seconds events can emit