Skip to content

brianclogan/rich-presence-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Game Roles Bot

A simple bot that gives users roles according to the activity they are doing.

The idea of the bot is simple and useful, when a user starts playing a game, the bot automatically gives the user the role. Once a user stops playing a game, the role is removed.

Requirements

Installation

# Clone the repository
git clone https://github.com/kennedysmartins/GameRolesBot.git

# Enter into the directory
cd GameRolesBot/

# Install the dependencies
npm install

Configuration

After cloning the project and installing all dependencies, you need to add your Discord API token in the config.json file.

In app.js, there is a part that you must add the game you want to monitor, and put the role ID you created in your discord server.

"VALORANT": {
        name: "valorant",             //NAME ROLE TOLOWERCASE
        id: '735224527851618396'      //ROLE ID
 },

alt text

Intents

You must manually enable the intents from the Discord Developer site (https://discord.com/developers/applications/). Select your app, and find the "bot" tab on the sidebar. Then you can scroll down until you see this: alt text

Starting the application

node app.js

or

run #start.bat

Author

Kennedy Martins (KillerDogs)

Support me

Buy Me A Coffee

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.8%
  • Batchfile 1.2%