Skip to content

When a user joins your server on Discord and the Bot detects that user's badges, it gives them the badges they have.

Notifications You must be signed in to change notification settings

Weh-gh/discord-autorole-badges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 

Repository files navigation

When a member joins your server on Discord, it automatically detects their badge and assigns their badge as a role

Discord Autorole Badges

DVSCode server

Knowledge Required to Operate

1: (Compulsory) It will not work if you do not have NodeJS installed on your computer. Download Node.js here: Download Nodejs

Installation

npm install

Start up

node index.js

Example

const {Manager} = require('discord-autorole-badges');
const {Client} = require('discord.js');
const client = new Client({ intents: 32767 })


let manager = new Manager(client, {
    DISCORD_EMPLOYEE: "role_id",
    PARTNERED_SERVER_OWNER: "role_id",
    HYPESQUAD_EVENTS: "role_id",
    BUGHUNTER_LEVEL_1: "role_id",
    HOUSE_BRAVERY: "role_id",
    HOUSE_BRILLIANCE: "role_id",
    HOUSE_BALANCE: "role_id",
    EARLY_SUPPORTER: "role_id",
    TEAM_USER: "role_id",
    BUGHUNTER_LEVEL_2: "role_id",
    VERIFIED_BOT: "role_id",
    EARLY_VERIFIED_BOT_DEVELOPER: "role_id",
    DISCORD_CERTIFIED_MODERATOR: "role_id",

})

client.on("guildMemberAdd", async (member) => {
    await manager.setRole(member);
})

client.on("ready", () => {
    console.log("Discord login successful!")
})

client.login(token);