Before you can host your Discord bot on FPS.ms, you need a bot token from Discord. This guide walks you through creating a Discord application, generating the token, setting permissions, and inviting the bot to your server.
What is a bot token?
A bot token is a unique authentication key that lets your code connect to Discord as a bot. Think of it as a password — anyone with your token can control your bot, so keep it secret.Never share your bot token
If your token is ever exposed (in a screenshot, public GitHub repo, or message), reset it immediately in the Discord Developer Portal. Leaked tokens let others hijack your bot.
Step 1: Create a Discord application
- Go to the Discord Developer Portal
- Sign in with your Discord account
- Click New Application in the top right
- Enter a name for your application (this can be changed later)
- Accept the Developer Terms of Service and click Create
Step 2: Create the bot user
- Click Bot in the left sidebar
- Your bot user is created automatically with your application
- Under Token, click Reset Token
- Click Yes, do it! to confirm
- Copy the token immediately — you will not be able to see it again
Copy it now
Discord only shows the token once. If you lose it, you will need to reset it and update it everywhere you use it.
Step 3: Configure bot permissions and intents
Privileged Gateway Intents
Still on the Bot page, scroll down to Privileged Gateway Intents. Enable the intents your bot needs:| Intent | What it does | Enable if your bot... |
|---|---|---|
| **Presence Intent** | Tracks user online/offline status | Shows who is online |
| **Server Members Intent** | Access to the member list | Manages roles or greets new members |
| **Message Content Intent** | Reads message text | Responds to message content (not just slash commands) |
Slash commands don't need Message Content
If your bot only uses slash commands, you do not need the Message Content intent. This is the recommended approach for new bots.
Bot permissions
When generating the invite link in the next step, you will select which permissions your bot needs. Common permissions:| Permission | Use case |
|---|---|
| Send Messages | Bot sends messages in channels |
| Manage Messages | Bot deletes or pins messages |
| Manage Roles | Bot assigns roles to members |
| Connect + Speak | Bot joins voice channels |
| Use Slash Commands | Bot registers slash commands |
Step 4: Invite the bot to your server
- Click OAuth2 in the left sidebar
- Scroll down to OAuth2 URL Generator
- Under Scopes, check
botandapplications.commands - Under Bot Permissions, select the permissions your bot needs
- Copy the generated URL at the bottom
- Open the URL in your browser
- Select the server you want to add the bot to and click Authorize
Can't see your server?
You need the Manage Server permission on the Discord server to add a bot. If you don't see your server in the list, ask the server owner to add the bot or give you the Manage Server permission.
Step 5: Add the token to FPS.ms
Now that you have your token, add it to your FPS.ms server using a.env file:
- Go to panel.fps.ms and select your Discord bot server
- In the Files tab, create a file named
.envin the root directory - Add your token in the format:
BOT_TOKEN=your-token-here - Save the file and restart your server
How to reset your token
If your token is compromised or you just need a new one:- Go to the Discord Developer Portal
- Select your application
- Click Bot in the left sidebar
- Click Reset Token and confirm
- Copy the new token
- Update the token in your
.envfile on FPS.ms
Updating your token
After resetting, your bot will go offline until you update the
.env file on FPS.ms and restart. The old token stops working immediately.Next steps
- Install your bot on FPS.ms — deploy with Python or Node.js
- Set up environment variables — manage your token securely
- Add slash commands — make your bot interactive
CanerAkar