https://github.com/simplediscordbotsjs/discord-autorole-bot
This bot is needed to automatically assign roles to new users on your Discord server.
https://github.com/simplediscordbotsjs/discord-autorole-bot
autorole bot discord discord-bot discord-js discordjs node nodejs
Last synced: about 1 year ago
JSON representation
This bot is needed to automatically assign roles to new users on your Discord server.
- Host: GitHub
- URL: https://github.com/simplediscordbotsjs/discord-autorole-bot
- Owner: SimpleDiscordBotsJS
- License: gpl-3.0
- Created: 2020-12-01T04:47:45.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-09T01:51:11.000Z (over 4 years ago)
- Last Synced: 2025-05-07T13:48:47.610Z (about 1 year ago)
- Topics: autorole, bot, discord, discord-bot, discord-js, discordjs, node, nodejs
- Language: JavaScript
- Homepage:
- Size: 1.57 MB
- Stars: 5
- Watchers: 0
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discord-AutoRole-Bot
This bot is needed to automatically assign roles to new users on your Discord server.
Advantages:
- I commented everything out, so it's easy to figure it out
- All setup in one file
- Checking for the server (It is necessary so that when using the bot on several servers, no crashes occur)
# Instructions
## Discord Bot:
- [Create application](https://discord.com/developers/applications)
- Add a bot to it (Bot section)
- In the same place where the bot was added, enable "PRESENCE INTENT" and "SERVER MEMBERS INTENT" (Without this, the bot will not work)
- Add a bot to the server (here it is already)
## Customizing the Config.json File
```js
{
"BOT_TOKEN": "Enter_discord_bot_token",
"SERVER_ID": "Enter_server_id",
"ROLE_ID": "Enter_the_id_of_the_required_role"
}
```
The bot token can be copied in the Bot section of [your application](https://discord.com/developers/applications)
# Attention!
To get the role and server IDs, you must enable developer mode
## To run locally, you need Node.JS
- [Download Node.JS](https://nodejs.org/en/)
## Start
```sh
node index.js
```