TABI CLOUD
Bots

How to host a Discord bot (discord.js and discord.py) and fix common errors

6 min read · Updated October 2026 · By Tabi Cloud

Hosting runs your bot all day so it doesn't depend on your own PC.

Before you upload

Node.js (discord.js)

  1. Upload your files, including package.json.
  2. Install dependencies with npm install.
  3. Set the start command, for example node index.js.
  4. Add your TOKEN as an environment variable and start the bot.

Python (discord.py)

  1. Upload your files and requirements.txt.
  2. Install with pip install -r requirements.txt.
  3. Set the start command, for example python bot.py.
  4. Add your token as an environment variable and start the bot.

Common errors

Want your own server? Join our Discord and tell us the game. We set it up and send you the details. Need help with an error from this guide? Open a ticket there.

GET STARTED ON DISCORD

More guides

BotsHow to keep your Discord bot online 24/7BotsHow to host a Telegram bot 24/7BotsDiscord bot with Python or Node.js: which should you choose?