
discord-addon
An extremely simple module to make things simpler.
NOTE: More modules will be added soon!
Installation
This module assumes you already have a basic Discord.js bot setup.
Once you've done this, setting the anti spam up will be very easy.
And you can follow the code below to get started!
const { AntiSpam } = require("discord-addon");
AntiSpam(bot, {
warnBuffer: 3,
maxBuffer: 5,
interval: 1000,
warningMessage: "stop spamming or I'll whack your head off.",
banMessage: "has been banned for spamming, anyone else?",
maxDuplicatesWarning: 7,
maxDuplicatesBan: 10,
softban: false
});
That's it. enjoy not being raided :)
If you have any issues, bugs or trouble setting the module up. feel free to open an issue on Github