discord-altprev

1.0.1 • Public • Published

discord-altprev

A simple alt prevention module for DiscordJS V12.


Support


Installation

npm i discord-altprev@latest


Constructor

Base customization for the module.

Entry Type Definition
#1 STRING The time limit for an alt to be removed
#2 STRING kick or ban. DEFAULT: kick
#3 BOOLEAN Debug Mode Toggle

Code Example

const Discord = require('discord.js')
const client = new Discord.Client()
const altprev = require('discord-altprev')
const police = new altprev('30d', 'kick', true) // If the account is 30 days or under, they will be kicked

client.on("ready", () => {
    console.log(`I AM READY!!!!`)
});

client.on('guildMemberAdd', async guildMember => {
    await police.checkAlt(guildMember);
});

client.login('YOUR_BOT_TOKEN')

Dependents (0)

Package Sidebar

Install

npm i discord-altprev

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.2 kB

Total Files

3

Last publish

Collaborators

  • hyperz