discord-altprev
v1.0.1
Published
A simple alt prevention check module for DiscordJSV12.
Downloads
10
Maintainers
Readme
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')