How do I get my Discord bot online?

At HostValues, Discord bots run on the same game panel as the game servers. This is how you get your bot online:

  1. Log in to the game panel with the details from your welcome email and open your bot server.
  2. Upload your bot files through the Files tab or via SFTP. Upload the individual files, not a zip, or extract a zip with the Unarchive option.
  3. Go to the Startup tab and set the startup file to the name of your main file, for example index.js for Node.js or bot.py for Python.
  4. Start the bot from the Console tab.

Dependencies

You do not need to install external packages yourself. Make sure your project contains a package.json (Node.js) or requirements.txt (Python) listing your dependencies. They are installed automatically on startup. So do not upload the node_modules folder, it only slows things down.

Bot token

Never hardcode your bot token in code that you share or publish. Instead, use an environment variable in the Startup tab, if your egg offers one, or a separate configuration file such as .env or config.json that you only place on the server.

If the bot does not start or an error message appears in the console, check that the startup file is correct, that all dependencies are listed in the dependency file and that the token is valid. Still stuck? Open a support ticket and include the error message from the console.


Still stuck? Open a support ticket, our team is happy to help.

Back to the knowledge base