Creating a Bot
To connect Lunibee to Discord, you need a Bot Token from the Discord Developer Portal.
1. Create an Application
Section titled “1. Create an Application”- Go to the Discord Developer Portal.
- Click New Application in the top right.
- Give your application a name (e.g.
My Lunibee Bot) and accept the Developer Terms.
2. Generate a Bot Token
Section titled “2. Generate a Bot Token”- In your application dashboard, navigate to the Bot tab on the left sidebar.
- Click Reset Token to generate a fresh token.
- Copy the token and save it in a safe place.
[!CAUTION] Never commit your bot token to source control or share it publicly. Use environment variables (such as a
.envfile).
3. Configure Privileged Gateway Intents
Section titled “3. Configure Privileged Gateway Intents”Under the Privileged Gateway Intents section on the Bot page, enable the intents your bot needs:
- Message Content Intent (Required if your bot reads standard message text for prefix commands)
- Server Members Intent (Required for guild member events and tracking)
- Presence Intent (Required if your bot tracks user statuses)
4. Invite the Bot to Your Server
Section titled “4. Invite the Bot to Your Server”- Navigate to OAuth2 -> URL Generator on the left menu.
- Select the
botandapplications.commandsscopes. - Check the permissions your bot will need (e.g.,
Send Messages,Embed Links,Read Message History). - Copy the generated URL at the bottom, paste it into your browser, and select your server to invite your bot!