Skip to main content

Overview

Vertra Cloud is ideal for hosting Discord bots, offering continuous uptime with auto-restart and real-time log monitoring.

Discord.js (JavaScript)

Structure

package.json

vertracloud.config

Example


Discord.py (Python)

Structure

requirements.txt

vertracloud.config

Example

Deploy

1

Configure environment variables

After creating the application, add DISCORD_TOKEN in environment variables with your bot token.
2

Select BOT type

In the creation wizard, select Bot type (not Website). Bots don’t need HTTP port.
3

Enable auto-restart

Activate auto-restart so the bot automatically returns in case of disconnection or error.
4

Check logs

After deployment, monitor logs to confirm the bot is online.
Never include the bot token directly in the code. Use environment variables for sensitive data.

Available Versions

Node.js

Python

Notes

  • Bot Type: Always select Bot when creating the application (not Website)
  • Environment variables: Configure DISCORD_TOKEN in the application’s variables
  • Auto-restart: Essential to keep the bot online in case of disconnection
  • Memory: 256MB is enough for simple bots, 512MB+ for complex ones
  • Logs: Use console.log() (JS) or logging (Python) to monitor in real-time
  • Polling: Both libraries use polling, which is simpler but consumes more resources than webhooks