1.0.1 • Published 3 years ago

discord-altprev v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

discord-altprev

A simple alt prevention module for DiscordJS V12.


Support


Installation

npm i discord-altprev@latest


Constructor

Base customization for the module.

EntryTypeDefinition
#1STRINGThe time limit for an alt to be removed
#2STRINGkick or ban. DEFAULT: kick
#3BOOLEANDebug 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')