Skip to content
Back to the guides

Hosting a Discord bot

Node.js, Python or Java. Code from a Git repository or uploaded, token as a variable.

Creating it

  1. In the dashboard go to Bots, then New bot.
  2. Pick a runtime: Node.js, Python or Java. That decides the image and the start command.
  3. Optionally give a public Git repository. We clone it during setup. Without one we create an empty instance for you to upload files into.
  4. Set the entry file and the bot token as variables.

Dependencies

During setup we install the dependencies from whichever file belongs to your runtime: package.json for Node.js, requirements.txt for Python.

That runs in a throwaway container on your directory, never on the host. If you change dependencies later, reinstall the instance once.

Reinstalling

Logs rather than a console

For a bot the console is one way: you watch the output live but cannot type into it. That is not a missing feature, it is the honest rendering of the fact that a bot's output is not a command prompt.