discord-anti-alt
v1.1.0
Published
Simple npm package for help you to make anti alt account system for discord server
Downloads
89
Maintainers
Readme
Discord Anti Alt
📥 Installation
npm install discord-anti-alt
🔎 About
Discord Anti Alt is simple npm package for help you to make anti alt account system for discord server
🔧 Usage
Configurations ( config ):
options List [ type: string ] :
- kick
- ban
days [ type: number ]: Only less than that's( days option ) ages will get a response
Basic Usage
const alt = require("discord-anti-alt");
const account = new alt.config({
days: 2, // Only user who has less than 2 days ages will get a response
options: "" // Options will you set for alt account system
});
client.on('guildMemberAdd', async member => {
account.run(member);
let userProfile = alt.profile(member);
console.log(userProfile);// show information about alt user
})
Full_usage
const Discord = require("discord.js");
const client = new Discord.Client();
// Usage
const alt = require("discord-anti-alt");
const account = new alt.config({
days: 2,// only user who has less than 2 days ages will got kick
options: "kick"
});
let altChannel = "779585627595210772"; //Channel ID will you set as logs channel
client.on('guildMemberAdd', async member => {
let play = account.run(member);
let info = alt.profile(member); //Show the information about alt user
if(play){
//Your message when someone join the server using alt account
const embed = new Discord.MessageEmbed()
.setAuthor(info.userTag,info.avatar)
.setColor("RANDOM")
.addField("Username",info.username)
.addField("UserID",info.userID)
.addField("User Age",info.userAge)
.setTimestamp()
return member.guild.channels.cache.get(altChannel).send(embed)
//You can also send a normal message
}
})
client.login("Your Secret token");
⏳ Opinion
If you found some bug or you have some suggestion to our npm package, You can join our discord server https://discord.gg/8rUvTYhFqK