githubEdit

robotBots

Learn how to host Discord bots on Discloud.

πŸ€– What is a "Bot" on Discloud?

On Discloud, a Bot is any application that runs continuously but does not require an external port for access. This typically includes:

  • πŸ€– Discord Bots (discord.js, discord.py, JDA, etc.)

  • πŸ’¬ Telegram Bots

  • βš™οΈ Automation Scripts


βœ… Requirements

To host a bot, you must meet these criteria:

circle-check
circle-check
circle-check

πŸš€ Step-by-Step Hosting Guide

1

πŸ“ Configure discloud.config

circle-info

If you are using the Discord Bot's Quick Setup, you don't need to create this file manually, the Discord bot will ask for the information during the process.

NAME=MyCoolBot
TYPE=bot
MAIN=index.js
RAM=100
VERSION=latest
  • TYPE=bot: Identifies the app as a bot/background service.

  • MAIN: The entry point of your application. Learn more about the main file.

  • RAM: Allocated memory (min. 100MB).

2

πŸ—οΈ Handling Build Processes

If your bot requires a build step (like TypeScript or Java), you have two options:

circle-info

For Java applications, you must build locally and upload the .jar file. See the Java build guide.

3

πŸš€ Upload and Deploy

You can upload your project using any of our supported methods:

circle-info

Before uploading, make sure to compress your project correctly and exclude unnecessary files using a .discloudignore file.

Last updated