discord-pro-antispam
v1.0.1-0
Published
Easy AntiSpam Package.
Downloads
6
Maintainers
Readme
Discord-antispam
Discord-antispam is the best package for antispam protection.
Installation
npm i discord-pro-antispam
Usage
const Discord = require('discord.js');
const client = new Discord.Client();
const antiSpam = require('discord-pro-antispam');
client.on("message", async message => {
antiSpam.check(message, 'Action', max, timeout);
// Action = Mute | Ban | Kick | Blacklist;
// max = Number of messages in timeout like 5 messages in 10 seconds.
// timeout = Time between max number of messages.
});
client.login("BOT_TOKEN");
Important:
ADMINISTRATOR
permission required.if your Action is: Mute you must make role with name "Muted" and disable
SEND_MESSAGES
permission in all text channels.if your Action is: Blacklist you must make role with name "Blacklist" and disable
READ_MESSAGES
permission in all text channels.