Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anti-raid

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anti-raid

api checking spaming users

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-72.73%
Maintainers
2
Weekly downloads
 
Created
Source

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);

FAQs

Package last updated on 27 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc