anti-raid

api checking spaming users

Usage no npm install needed!

<script type="module">
  import antiRaid from 'https://cdn.skypack.dev/anti-raid';
</script>

README

Anti-raid

new update info :

Now add No check Spam channel add or remove method Fully customisable your self

how to use api

Besic ex.


const Discord = require("discord.js");
const bot = new Discord.Client();
bot.NoCheckSpamChannel = ["< Channel Id>", "< channel id 2>"]
const Antiraid = require("anti-raid");
const setup = Antiraid.checkspam({
clientBot: bot 
});
bot.login("<your bot token>");

join support server

Fully customisable Ex.

const Discord = require("discord.js");
const bot = new Discord.Client();
bot.NoCheckSpamChannel = ["< Channel Id>", "< channel id 2>"]
const Antiraid = require("anti-raid");
const setup = Antiraid.checkspam({ 
clientBot: bot,
bot: true, // check bot spam true or false 
warn: 3, //warn
kick: 4, //4 warn = kick
ban: 6, //6 warn = ban
interval: 3200, //check spam await
maxwarn: 7, //max warn count
maxkick: 6, //max kick count
maxban: 8, //max ban count
permission: ["ADMINISTRATOR"], //role parmission
verbose: false,
ignoreduser: ["596521432507219980"], //not check spam this user id
});
bot.login("<your bot token>");

List channel No check spam channel

const Antiraid = require("anti-raid");
console.log(Antiraid.list());

add No check spam channel

const Antiraid = require("anti-raid");
Antiraid.addChannel("<Channel Id>");

Remove No check spam channel

const Antiraid = require("anti-raid");
Antiraid.removeChannel("<Channel Id>");

NOTE Add channel and Remove channel No Support Array

Version

const Antiraid = require("anti-raid");
console.log(Antiraid.version);