A simple Discord bot built with discord.js
that automatically sends the /ping
command monthly to keep the Discord Active Developer Badge forever.
- /ping Command: Responds with "Pong!" when the
/ping
command is used. - Automated Monthly Ping: Sends the
/ping
command in a specified channel every month. - Easy Setup: Interactive setup script for configuration.
- Persistent Scheduling: Maintains the monthly schedule even after stops or restarts.
Follow these steps to set up and run your own Discord Active Developer Badge bot in less than 5 minutes.
- A Discord Developer Application
- Click
New Application
found in the top-right
- Click
- A Bot for the Discord Developer Application
- Click the
Bot
tab inside your Application
- Click the
- A Discord server and account with permissions to create and manage bots
- Your Discord Server needs to be a Community Server
For local hosting (optional):
- Go to Replit
- Click the Run button
- Answer the 4 prompts
- Answer the 4 prompts in the console in the bottom-right.
- Don't know the answers? No worries! Check the Interactive Configuration section.
- You're done!
- Test your bot in your server by sending
/ping
or wait for the automatic monthly schedule. - The schedule to maintain active status is logged in the
schedule.json
file.
- Test your bot in your server by sending
- Retrieving the Badge
Local Hosting Steps
-
Clone the repository:
git clone https://github.com/Sanquinary/discord-active-developer-badge-forever.git cd discord-active-developer-badge-forever
-
Install dependencies:
npm install
-
Start the bot:
node index.js
-
(Optional) Start the bot with PM2:
npm install pm2 -g pm2 start index.js --name "discord-bot" pm2 save pm2 startup
When you run the project for the first time, you will be prompted to provide the following:
-
Bot Secret Token:
- Go to: Applications -> YOUR_APPLICATION -> Bot Tab -> Reset Token ->
Copy this token
- Go to: Applications -> YOUR_APPLICATION -> Bot Tab -> Reset Token ->
-
Bot Client ID:
- Go to: Applications -> YOUR_APPLICATION -> Application ID ->
Copy this ID
- Go to: Applications -> YOUR_APPLICATION -> Application ID ->
-
Discord Server (Guild) ID:
- Open Discord -> Navigate to your server -> Right-click the server name ->
Copy Server ID
- If
Copy Server ID
doesn't show, enable Developer Mode in Settings -> Appearance -> Developer Mode
- Open Discord -> Navigate to your server -> Right-click the server name ->
-
Discord Channel ID:
- Open Discord -> Navigate to your server -> Right-click the desired text channel ->
Copy Channel ID
- Open Discord -> Navigate to your server -> Right-click the desired text channel ->
To retrieve the badge:
- Manually run the
/ping
command in your Discord Server after starting your bot in Replit withRun
or withnode index.js
locally. - Ensure you meet Discord's requirements for the Active Developer Badge
Wait at least 24 hours and check this page: Active Developer Badge to claim your badge.
Contributions are welcome! Please open an issue or submit a pull request for any changes.
This project is licensed under the MIT License. See the LICENSE file for details.