This bot automatically helps you maintain your Discord Active Developer Badge eligibility.
- 🤖 Automatic slash command registration
- 📊 Auto-executes commands every 30 days to ensure active developer status
- ⚡ Simple and easy setup process
- 🔄 Automatic reconnection mechanism
Discord requires developers to use at least one slash command within the past 60 days, or they will be removed from the Active Developer program. This bot automatically executes commands periodically to ensure your application stays active.
# Clone the repository
git clone https://github.com/HenryLok0/Auto-Discord-Developer-Badge.git
# Navigate to the project directory
cd Auto-Discord-Developer-Badge- Go to Discord Developer Portal
- Click "New Application" to create a new application
- Select "Bot" from the left sidebar
- Click "Reset Token" and copy your bot token (keep it secret!)
- Enable the following Privileged Gateway Intents:
- MESSAGE CONTENT INTENT
- GUILD MESSAGES
- In Developer Portal, select "OAuth2" > "URL Generator"
- Check the following permissions:
- Scopes:
bot,applications.commands - Bot Permissions:
Send Messages,Use Slash Commands
- Scopes:
- Copy the generated URL and open it in your browser
- Select the server to add the bot to
# Install dependencies (this will automatically create .env and invite-bot.html files)
npm installNote: The npm install command will automatically:
- ✅ Create
.envfile from.env.example(if it doesn't exist) - ✅ Create
invite-bot.htmlfrominvite-bot.html.template(if it doesn't exist)
Edit the .env file and fill in the following information:
DISCORD_TOKEN=your_bot_token
CLIENT_ID=your_application_id
GUILD_ID=your_server_idHow to get these IDs:
- DISCORD_TOKEN: "Reset Token" button on the Bot page
- CLIENT_ID: "APPLICATION ID" on the General Information page
- GUILD_ID: Right-click server icon in Discord → "Copy Server ID" (Developer Mode must be enabled in settings)
npm run registernpm startAfter starting the bot, it will:
- ✅ Automatically generate setup guide with your environment variables
- ✅ Open setup guide in your default browser
- ✅ Automatically connect to Discord
- ✅ Register the
/pingcommand - ✅ Auto-execute commands every 30 days to keep the application active
- ✅ You can also manually test by typing
/pingin Discord
The setup guide (invite-bot.html) is automatically generated from your .env file:
- ✅ Automatic Generation: Every time you run
npm start, the guide is regenerated with your current environment variables - ✅ Opens in Browser: The guide automatically opens in your default browser on startup
- 🔒 Local Only: The generated HTML file is not tracked by git (listed in
.gitignore)
Note: The invite-bot.html.template file is provided as a reference. The actual invite-bot.html will be created automatically with your specific configuration when you run npm start.
/ping- Check if the bot is working properly and maintain Active Developer status
The bot has built-in automated scheduling:
- Automatically executes a slash command every 30 days
- Ensures active status within the 60-day requirement
- No manual intervention required
To ensure the bot runs 24/7, it's recommended to deploy to a cloud platform:
- Sign up for a Heroku account
- Install Heroku CLI
- Run:
heroku create
heroku config:set DISCORD_TOKEN=your_token CLIENT_ID=your_id GUILD_ID=your_guild_id
git push heroku main- Sign up for a Railway account
- Connect your GitHub repository
- Set environment variables:
DISCORD_TOKEN,CLIENT_ID,GUILD_ID
- Sign up for a Render account
- Create a new Web Service
- Connect your GitHub repository
- Set environment variables
- Check if
DISCORD_TOKENis correct - Confirm the bot has been added to the server
- Run
npm run registerto register commands - Wait 1-5 minutes for Discord to update commands
- Check if the bot has
applications.commandspermission
- Ensure the bot is running continuously (recommend deploying to cloud)
- Check log output for error messages
- Start the bot and let it run
- Wait for auto-execution (or manually run
/ping) - Go to Discord Active Developer Page
- Click "Claim Badge" to claim your badge
Note: Badge application may take up to 24 hours to process.
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have questions or need help, please open an issue on GitHub.
Thank you to all contributors and the open-source community for your support.