This repository contains a minimal Discord bot used to trigger the requirements for the Discord Active Developer Badge.
The bot only registers and responds to a single slash command: /ping.
Follow these steps to deploy the bot and become eligible for the badge.
- Go to the Discord Developer Portal and create a New Application.
- In the application settings, go to the Bot tab and click Add Bot.
- Click Reset Token and copy the bot token. You will need this to run the bot.
- Go to the General Information tab and copy the Application ID. You will need this for the invite link.
-
Ensure you have Node.js installed on your system.
-
Save the provided
index.jsandpackage.jsonfiles. -
Open your terminal or command prompt in the project directory.
-
Install the necessary dependencies:
npm install
-
Run the bot:
node index.js
-
When prompted in the console, paste your bot token and press Enter.
-
Wait for the console to log the message:
DONE | Application/Bot is up and running.... Keep this running.
-
Create a new Discord server or use an existing one where you have admin privileges.
-
Go to Server Settings -> Enable Community and follow the steps to enable it for the server.
-
Use the following URL to invite your bot (replace
{applicationid}with the Application ID you copied in Step 1):https://discord.com/oauth2/authorize?client_id={applicationid}&scope=bot%20applications.commands&permissions=105227086912 -
In any channel on that server, use the command:
/ping -
Visit the Active Developer Badge page at https://discord.com/developers/active-developer and register your application.
- Note: If you are not eligible right away, you may need to wait up to 24 hours for Discord's system to register the command usage.
Important Settings:
- Make sure you have the “Use data to improve Discord” setting enabled under User Settings > Privacy & Safety, as this is required for eligibility.