Discord Bot Hosting Guide

Node.js, Python, and Java bots

1

Upload your bot files

Connect via SFTP using the credentials in your dashboard. Upload your bot's source files to /home/container/. Supported runtimes: Node.js 18/20, Python 3.10/3.11, Java 17/21.

2

Set your start command

In the panel's Startup tab, set your bot's start command. Examples:

node index.js        # Node.js
python3 bot.py       # Python
java -jar bot.jar    # Java
3

Set environment variables

Add your Discord token and other secrets in Startup → Environment Variables. Never hardcode tokens in your source files.

4

Install dependencies

Run package installs from the panel console:

npm install                     # Node.js
pip install -r requirements.txt # Python
5

Enable auto-restart

Go to Settings → Auto-restart and enable it. Your bot will automatically restart if it crashes, and after any planned maintenance windows.

← All articles