Everything you need to know about hosting and managing your Discord bot with Trevand.
Get your Discord bot up and running on Trevand in minutes. Follow these steps to get started.
Everything starts in our Discord community. Join to purchase a plan, get support, and manage your bot hosting.
Join Trevand DiscordOnce 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.
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.comTrevand supports bots written in multiple languages. Here's how to set up your project.
# 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')
// 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');
Configure your bot's settings through environment variables in the Trevand panel. Navigate to your server's Startup tab to set these values.
| 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 |
Once your files are uploaded and environment variables are configured, you're ready to start your bot from the panel terminal.
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!
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.
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.
You can update your bot by pushing changes to your connected GitHub repository or uploading new files through the dashboard. Changes are deployed automatically.
We currently support Python, JavaScript/Node.js, TypeScript, Java, Go, and Rust. More languages coming soon!
Logs are available in real-time through your dashboard. You can also access them via the API or set up webhook notifications.
Yes! Custom domains are available on Pro and Ultimate plans. Contact support to set up your domain.
Can't find what you're looking for? Join our Discord community for support.
Join Support Server