fbpx
Xgamingserver
discord-bot-hosting
valheim-server-hosting

How to host your own Discord bot

In this guide, you will find all the important information about hosting your own Discord bot.

Uploading your bot files

First of all, we need to upload the bot on the server.

Log in to your server control panel and navigate to the file manager section. Here you can upload your bot to the server.

file manager
file manager
discord bot file
uploaded file

Running your Discord bot

To start your bot, you firstly need to access the CLIs commands.

Navigate to the console section and execute this command:

/bin/bash
/bin/bash command
/bin/bash command

Now, choose a command from the list below depending on the language which your bot is running.

Node.js - "node <your bot file>"

Java - "java -jar <your bot file>"

Python2 - "python <your bot file>"

Python3 - "python3 <your bot file>"

C# .NET .exe - "Mono <your bot file> Go <other binaries>"
C# .NET binary - "/<your bot file>"

You can also find this list in the startup section of your server control panel.

discord bot startup commands
startup commands

Now, execute the command in the console section to run your Discord bot.

Example:

example discord bot
startup command example

Your Discord bot should now be up and running.

X Support

Add comment