This guide will walk you through setting up a Discord bot to earn the Active Developer Badge. Follow the steps carefully to ensure your bot is set up correctly and eligible for the badge.
- Go to Discord Developer Portal.
- Click the New Application button.
- Give your application a name and create it.
- Navigate to the Bot tab.
- Click Add Bot and confirm.
- Click Reset Token to generate a new token. If you have 2FA enabled, you'll need your code.
- Copy the generated token.
- Click this badge to clone this repo to a new repl in Replit ->
- Create a
config.json
file in the root of the project with the following content:{ "token": "YOUR_DISCORD_BOT_TOKEN_HERE" }
- Replace
YOUR_DISCORD_BOT_TOKEN_HERE
with the token you copied earlier.
- Open a terminal and navigate to the project directory.
- Run
npm install
to install the necessary dependencies. - Start the bot with
npm start
. - Wait for it to print 'DONE | Application/Bot is up and running. DO NOT CLOSE THIS TAB UNLESS YOU ARE FINISHED USING THE BOT, IT WILL PUT THE BOT OFFLINE.' in the console.
- Go back to the application page, go to the General Information tab, scroll down and copy the Application ID.
- Create a new Discord server (you can delete it at the end).
- Enable community on the server (you only need to do this if you don't own any other Discord server with community enabled).
- Return back to Discord Developer Portal.
- Copy the application ID.
- Use this invite link to add the application to the server: (replace
{applicationid}
with the copied ID) https://discord.com/oauth2/authorize?client_id={applicationid}&scope=bot%20applications.commands&permissions=105227086912
- In the server, go to a channel and use the
/badge
command on the bot.
- Go to the Discord Active Developer Page and register everything.
- If it says you're not eligible, it might be because you're not registered in their system yet. You might have to wait up to 24 hours.
- Congrats on that shiny new badge!
NOTE: Make sure you have the "Use data to improve Discord" setting enabled under User Settings > Privacy & Safety, otherwise you won't be able to be marked as eligible.