Creating your own Discord bot¶
Before you install EllieBot, you need a Discord bot account and its token. This page shows how to create the bot, get the token and invite the bot to your server.
Create the bot and copy the token¶
- Open the Discord Developer Portal and log in.
- Click New Application.
- Type a name for the bot.
- Accept the terms and click Create.
- On the left, click Bot.
- Click Reset Token, then click Yes, do it!.
- Copy the token.
- Put the token in the
tokenfield ofcreds.yml. Your install guide tells you where this file is.
Keep the token secret
The token is the password of your bot. A person with the token can control the bot. If someone sees your token, reset it immediately. A reset stops the old token, so put the new token in creds.yml.
Turn on the privileged intents¶
- On the Bot page, go to Privileged Gateway Intents.
- Turn on all three intents:
- Presence Intent
- Server Members Intent
- Message Content Intent
- Click Save Changes.
Without these intents, some features do not work. Without Message Content Intent, the bot runs a command only when the message starts with a mention of the bot.
Set yourself as the owner¶
The owner can use the owner-only commands, for example .die and .config. On the first start, the bot adds the owner of the Discord application to the ownerIds list. To add more owners, do these steps:
- In Discord, open User Settings > Advanced and turn on Developer Mode.
- Right-click your name and click Copy User ID.
-
Put the ID in the
ownerIdslist ofcreds.yml:ownerIds: - 123456789012345678
Invite the bot to your server¶

- On the left, click General Information and copy the Application ID.
-
In this link, replace
YOUR_APPLICATION_IDwith your Application ID:https://discord.com/oauth2/authorize?client_id=YOUR_APPLICATION_ID&scope=bot&permissions=66186303 -
Open the link in your browser.
- Select your server and click Authorize.
The bot is now in your server. It stays offline until you start it.
Next step¶
Install the bot with one of the guides:
- Desktop guide (Upllie) for Windows, Linux and macOS
- CLI guide for Linux and macOS
- Docker guide
- Source guide