1.3.8 • Published 1 year ago

bialu-discord-security v1.3.8

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

image

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

1.3.8

1 year ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago