Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-anti-alt

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-anti-alt

Simple npm package for help you to make anti alt account system for discord server

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 08 Jan 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc