Quick start¶
This page is for hosting your own teabot. You own it, and you can customise it how you want and share it with whoever you want.
At the end of this page, your own teabot is running and you have the link that invites it to your server. It takes about 15 minutes.
Before you start
You need:
1. Download the template¶
mkdir my-teabot && cd my-teabot
curl -fsSL https://github.com/teabot-dev/teabot/releases/latest/download/teabot-template.tar.gz | tar xz
This folder is now your instance: your bot's settings, plugins and deploy files. Keep it in git. Its .gitignore keeps the secret files out.
2. Create the Discord application¶
- Open the Discord developer portal and choose New Application. Give it a name.
- Open the Bot tab.
-
Choose Reset Token, and copy the token. You paste it in step 3.
Warning
Anyone with the token controls your bot. Keep it like a password.
-
Turn on Server Members Intent, and save. teabot needs it to see members join and leave.
- Leave Message Content Intent off. teabot never reads messages.
- To stop other people inviting your bot, first open the Installation tab and set Install Link to None. Then, on the Bot tab, turn Public Bot off.
3. Run the setup¶
It asks for the token, then sets up and starts everything. It ends with:
==> teabot is running
Invite it to your server with this link:
https://discord.com/oauth2/authorize?client_id=...&scope=bot+applications.commands&permissions=8
teabot.envholds the bot's settings and its token. Settings explains each one..envholds the database password thatsetup.shgenerated. Keep it: the database only opens with that password.- If a step fails, fix what it says and run
./setup.shagain. It keeps what it already wrote. Troubleshooting lists the usual failures.
4. Invite it¶
Open the link setup.sh printed, choose your server, and authorize. It asks for Administrator; Place teabot's role explains why, and how the bot's role limits it.
Next: Turn on plugins, then Settings, and Run it in production before a live server depends on it.