Put your Discord bot online (Node.js, Python or Java)
Upload your bot or link a GitHub repository, add your token safely in a .env file, set the start file and keep your bot online 24/7 on THOST.
A THOST bot server runs your Discord bot in its own container with a fixed amount of memory and CPU, around the clock. It connects out to Discord, so no public address or port is needed. Node.js 24, Python 3.13 and Java 21 are ready out of the box.
Steps
- Order a bot plan (512 MB suits most bots) in the language your bot is written in. The server is created within a minute.
- Open it in the dashboard (Game servers & bots, then the bot). The page shows a getting-started guide for your language.
- Get your code onto the server. Either drag your files into the Files tab (zip files can be extracted in place) or connect by SFTP, or set Git repository on the Settings tab (for example
https://github.com/you/my-bot.git). For a private repository also fill in Git username and Git access token (a GitHub or GitLab token, not your Discord token). - Add your bot token safely. Create a
.envfile in the file manager, for exampleDISCORD_TOKEN=..., and read it in your code. Never put the token in a public repository. - Check the start file under Settings: for example
index.js,main.pyorbot.jar. Packages inpackage.jsonorrequirements.txtare installed at every start. - Press Start and watch your bot log in on the Console tab.
Keep it updated from GitHub
Set Auto update from Git to Yes on the Settings tab and every restart pulls your latest commit. Push to GitHub, then press Restart. If you upload your own files instead, set I upload my own files to Yes so a reinstall does not overwrite them with the repository.
Questions
Is it really online 24/7?
Yes. It runs until you stop it, and if it crashes it is restarted automatically. Idle bots are never put to sleep.
My bot uses an older Node.js or Python version.
Pick it under Runtime on the Settings tab, so a bot written for Node 18 or Python 3.10 still runs.
Which size do I need?
512 MB suits most bots. 1 GB gives room for music bots, Lavalink or bots in hundreds of servers. 2 GB is for large or sharded bots and image processing. Move up a size from the Billing tab any time.
Java bots?
Upload a runnable "fat" (shaded) jar that already contains your libraries, such as JDA, and read the token at start-up, for example with System.getenv("DISCORD_TOKEN"). Never put the token inside the jar.
Did this not solve it? Open a support ticket and tell us which guide you followed. We answer every ticket ourselves.