Getting started with your Discord bot

Upload your bot, point the server at its main file and start it.

Bot hosting runs Node.js, Python or Java bots. Getting yours online takes three steps: upload your files, tell the server which file to run, and start it.


1. Upload Your Bot

Open your server in the game panel and upload your bot's files with Files, or with SFTP for bigger projects. See File manager basics and Uploading files with SFTP.

  • Node.js: upload your code and package.json. Don't upload the node_modules folder. It's rebuilt for you.

  • Python: upload your code and your requirements.txt.

  • Java: upload your compiled .jar file.


2. Set Your Main File

Click Startup and set the file your bot starts from:

  • Node.js: Main file (default index.js). TypeScript .ts files work too.

  • Python: App py file (default app.py).

  • Java: JAR FILE, the name of your .jar.

On the same page, Docker Image sets the Node.js, Python or Java version. Match what your bot was built for.


3. Start It

Go to the Terminal page and click Start. Your packages install first, then your bot starts. Watch the console for errors. See Using the console.


Deploying From GitHub

Instead of uploading files, you can set Git Repo Address on the Startup page. For a private repository, add Git Username and a Git Access Token. Turn on Auto Update to pull the latest code every time the bot starts.

Keep your token safe: Never put your bot token straight into code you push to GitHub. See Keeping your bot token safe.


Related Articles

Was this article helpful?

Your feedback helps us improve the documentation. Thanks — we’re glad this article helped. Sorry about that. What were you hoping to find? Thanks — we’ll use your feedback to improve this article.