Bots

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:


πŸš€ Step-by-Step Hosting Guide

1

πŸ“ Configure discloud.config

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:

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:

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

Last updated