Documentation

Everything you need to know about hosting and managing your Discord bot with Trevand.

Quick Start

Get your Discord bot up and running on Trevand in minutes. Follow these steps to get started.

1. Join Our Discord Server

Everything starts in our Discord community. Join to purchase a plan, get support, and manage your bot hosting.

Join Trevand Discord

2. Create a Ticket

Once you're in the server, open a support ticket to purchase a plan or get your bot set up. Our team will guide you through the onboarding process and provision your hosting environment.

3. Access the Panel

Once your server is provisioned, you'll be given access to the Trevand control panel where you can manage your bot, upload files, set environment variables, and monitor your instance.

panel.trevand.com

Installation

Trevand supports bots written in multiple languages. Here's how to set up your project.

Python (discord.py)

# requirements.txt
discord.py==2.3.0
aiohttp
python-dotenv

# main.py
import discord
from discord.ext import commands

bot = commands.Bot(command_prefix='!')

@bot.event
async def on_ready():
    print(f'Logged in as {bot.user}')

bot.run('YOUR_TOKEN')

JavaScript (discord.js)

// package.json
{
  "dependencies": {
    "discord.js": "^14.0.0"
  }
}

// index.js
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
  intents: [GatewayIntentBits.Guilds]
});

client.once('ready', () => {
  console.log(`Logged in as ${client.user.tag}`);
});

client.login('YOUR_TOKEN');

Configuration

Configure your bot's settings through environment variables in the Trevand panel. Navigate to your server's Startup tab to set these values.

Environment Variables

Variable Description Required
MAIN FILE The entry point file to run your bot (e.g. main.py or index.js) Yes
Git Access Token Personal access token to pull your bot's code from a private Git repository No
Database Connection string for your own database (available as an add-on purchase) No

Running Your Bot

Once your files are uploaded and environment variables are configured, you're ready to start your bot from the panel terminal.

Start Your Bot

Navigate to the Console tab in your panel. Click the Start button — the panel will automatically run the main file you configured in the Startup tab.

# Python example — runs automatically based on your MAIN FILE setting
python main.py

# Node.js example
node index.js

You'll see your bot's output stream live in the console. Look for your bot's ready message to confirm it's online!

Restarting & Stopping

Use the Restart and Stop buttons in the Console tab to control your bot at any time. Your bot will automatically restart if it crashes, depending on your plan settings.

Your Bot is Live!

Once you see the ready log in the console, your bot is online and serving your Discord server. You can monitor uptime, memory, and CPU usage from the panel dashboard.

Frequently Asked Questions

How do I update my bot?

You can update your bot by pushing changes to your connected GitHub repository or uploading new files through the dashboard. Changes are deployed automatically.

What languages are supported?

We currently support Python, JavaScript/Node.js, TypeScript, Java, Go, and Rust. More languages coming soon!

How do I view my bot's logs?

Logs are available in real-time through your dashboard. You can also access them via the API or set up webhook notifications.

Can I use a custom domain?

Yes! Custom domains are available on Pro and Ultimate plans. Contact support to set up your domain.

Still Need Help?

Can't find what you're looking for? Join our Discord community for support.

Join Support Server