Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
discord-anti-alt
Advanced tools
Simple npm package for help you to make anti alt account system for discord server
npm install discord-anti-alt
Discord Anti Alt is simple npm package for help you to make anti alt account system for discord server
Configurations ( config ):
options List [ type: string ] :
days [ type: number ]: Only less than that's( days option ) ages will get a response
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
})
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");
If you found some bug or you have some suggestion to our npm package, You can join our discord server https://discord.gg/8rUvTYhFqK
FAQs
Simple npm package for help you to make anti alt account system for discord server
The npm package discord-anti-alt receives a total of 26 weekly downloads. As such, discord-anti-alt popularity was classified as not popular.
We found that discord-anti-alt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.