For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set Up a Server

Before you start

Set Up a Server

Now that you have created a server, you should be able to view it on the Manage Servers page. Click Manage Server on it.

You can then view your server in the control panel. This is where you will upload files, start or stop your server, and configure it.

If this is your first time entering the control panel, you will be prompted to log in with Discord again. Once logged in, you should be able to see your server in the control panel. Select it.

You should now see your server like this. Along the top, you will see tabs to control different aspects of the server. The first thing you should do is upload your files.

Upload and Unarchive Files

If you want to pull files from a Git repository, please refer to this guide instead.

There are 2 ways to upload your files. You only need one:

  • Files tab: You can upload your files in the server's Files tab.

  • SFTP: Secure File Transfer Protocol. You can use this method to manage your server files directly from a program on your computer. If you want to use SFTP, you can find your credentials in the Settings tab in the control panel navbar for your server.

If you want to upload your files using the Files tab and file selector, click Files in the navbar at the top of your server, then click Upload.

If you are using an archive, your files will most likely decompress into a folder. You should move your files out of that folder. First, open the folder you just extracted.

Then select all the files using the checkbox next to them. You should now see a menu appear on your server where you can click Move.

This will open a modal where you can enter the path to move the files to. You can enter a relative path here, so to move the files out of the folder, simply enter .. to move them back one directory. Then, to complete the move, press Enter or click the move button.

Finally, you can delete the archive and folder on your server to free up space. Of course, if your files are already out of the folder, you do not need to follow those additional steps.

Final Configuration

You should review the startup configuration, found in the Startup tab on your server control panel, before your bot is ready to go. There are some notable configuration options.

You will see an option similar to Bot <language> file or JAR FILE. This is the file that the server will start with. When developing your bot, you will have a main file that is used to start the bot and import all other files. This is what you must enter here, so make sure it is correct.

If the file that starts the bot is not in the main directory and you cannot move it, please specify the path to the file in the field.

Additionally, if you are running a Python or Node.js server, you need to make sure the server knows which modules, packages, or libraries your code requires.

Node.js Packages Installation

There are 2 ways to install Node.js packages:

  1. When you start the server, the startup command checks for a file named package.json and installs modules using the names and versions defined in it. There are 2 ways to get that file:

  • From the folder where you developed your bot. It is most likely generated by the application you use for coding.

  1. In your server control panel, open the Startup section. Use ADDITIONAL NODE PACKAGES to install extra Node.js packages, separating package names with spaces. Write only the package name, not the npm command.

Common Errors Related to Package Installation

Error: Cannot find module 'package'

This error means the package.json file does not contain the package, or there was a problem during installation. Check the errors above.

npm error 404 Not Found - GET https://registry.npmjs.org/

This usually means the package you are trying to install does not exist, you typed it incorrectly, or an error caused the installation to be skipped.

Python Modules Installation

There are 2 ways to install Python packages:

  1. When you start the server, the startup command checks for a file named requirements.txt and installs modules using the names and optional versions defined in it. requirements.txt file creation guide

  2. In your server control panel, open the Startup section. Use ADDITIONAL PYTHON PACKAGES to install extra Python packages, separating package names with spaces.

Common Errors Related to Package Installation

ModuleNotFoundError: no module named 'discord'

This usually means that you did not declare the discord module in your requirements file, or the server could not install that module because an earlier error occurred.

ERROR: Could not find a version that satisfies the requirement package (from versions: none)

The package you are trying to install does not exist.

Your server should now be ready to go!

Last updated

Was this helpful?