Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Bialu-Software/discord-security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color=Green

Lightweight, fast and minimalist security solution for discord.js.

//import
const security = require("bialu-discord-security")

// use with Discord.js V13
client.on("messageCreate", (message) => {
  const security_config = { active: true }
  
  security.antiraid(client, message, security_config)
})

Installation

Installation is done using the npm install command

$ npm install bialu-discord-security

Features

  • Fast reaction time
  • Great for all types of projects (small, medium, large)
  • Ultra lightweight security solution

Security Issues

If you discover a security vulnerability, please contact us on Github or on our Discord server

Quick Start

const { Client, Intents } = require('discord.js');
const security = require("bialu-discord-security")

const client = new Client({
    intents: [
      Intents.FLAGS.GUILDS,
      Intents.FLAGS.GUILD_MESSAGES,
      Intents.FLAGS.GUILD_MEMBERS,
    ],
  })

client.once('ready', () => {
    console.log('Ready!');
});

client.on("messageCreate", (message) => {
  const security_config = {}

  security.antiraid(client, message, security_config)
})

client.login("<token>");

Configuration

For the security_config is more options than in examples above.

  const security_config = {
    active: false, // if you want antiraid to be turned off
    log_channel: "926173986751123516", // log channel for ban messages etc...
    ban_message: `${message.author.tag} has been banned because..`, // custom message
    react_to_bots: false // if you dont want antiraid to react to bots
  }
  
  console.log(security.version) // log your current version of package

Contributing

Contributing Guide

Powered by Bialu Software