Discord Setup Guide for ravenbot
This guide explains how to set up the Discord integration for ravenbot. To use ravenbot with Discord, you need to create a bot application, invite it to your server, and configure the necessary environment variables.
1. Create a Discord Application
- Go to the Discord Developer Portal.
- Click New Application in the top right corner.
- Give your application a name (e.g., "ravenbot") and click Create.
2. Create a Bot User and Get Token
- In the menu on the left, click Bot.
- Click Reset Token (or create one if it's the first time) to generate your bot token.
- Copy this token immediately. You will not be able to see it again.
-
This token goes into your
.envfile asDISCORD_BOT_TOKEN. -
(Optional) Disable "Public Bot" if you want to prevent others from adding your bot to their servers.
- Ensure Message Content Intent is enabled if the bot needs to read message content (ravenbot requires this to read commands).
3. Invite the Bot to Your Server
- In the menu on the left, click OAuth2 -> URL Generator.
- Under Scopes, check
bot. - Under Bot Permissions, check the following permissions:
- Read Messages / View Channels
- Send Messages
- Embed Links (useful for rich responses)
- Attach Files (if needed for logs/reports)
- Copy the generated URL at the bottom.
- Paste the URL into your browser, select the server you want to add the bot to, and click Authorize.
4. Get the Channel ID
ravenbot is designed to listen to a specific channel for security reasons.
- Open your Discord User Settings (gear icon).
- Go to Advanced and enable Developer Mode.
- Right-click the channel where you want ravenbot to be active.
- Click Copy Channel ID (or Copy ID).
-
This ID goes into your
.envfile asDISCORD_CHANNEL_ID.
5. Final Configuration
Ensure your .env file has both variables set:
Once configured, restart ravenbot. The bot will listen for commands in that specific channel.
Available commands: /research, /status, /remind, /watch, /jules, /uptime, /export, /reset, /help
Web UI
The web interface is also available at http://localhost:8080 — no additional setup required. It provides the same chat functionality plus research reports browsing, agent management, and a missions dashboard.