AI-powered Discord bot for the Volvox developer community. Built with discord.js v14 and powered by Claude.
- π§ AI Chat β Mention the bot to chat with Claude. Maintains per-channel conversation history with intelligent context management.
- π― Smart Triage β Two-step evaluation (fast classifier + responder) that drives chime-ins and community rule enforcement.
- π€ AI Auto-Moderation β Intelligent automated moderation powered by Claude. Analyzes messages for toxicity, spam, and harassment with configurable thresholds and actions.
- ππ AI Feedback β Users can rate AI responses with thumbs up/down reactions. Feedback tracked in dashboard analytics.
- π« AI Channel Blocklist β Configure channels the bot ignores for AI responses. Supports thread inheritance.
- π Dynamic Welcome Messages β Contextual onboarding with template variables (
{user},{server},{memberCount}), multiple variants, and per-channel configs. - π Reaction Roles β Role menus where users get roles by reacting. Custom/Unicode emoji support, built-in templates.
- β° Temporary Roles β Assign roles that auto-expire after a duration.
- π€ Voice Activity Tracking β Track voice channel activity for insights and leaderboards.
- β Starboard β Highlight popular messages with star reactions.
- π Reputation/XP System β Track engagement and award XP/levels.
- π€ AFK System β Set AFK status; bot notifies mentioners and DMs ping summaries on return.
- βοΈ Moderation Suite β Full toolkit: warn, kick, ban, tempban, softban, timeout, purge, lock/unlock, slowmode.
- π‘οΈ Protected Roles β Admins/mods protected from moderation actions.
- π Bulk Actions β Perform actions on multiple users at once.
- π Channel Quiet Mode β Temporarily silence the bot via
@bot quiet. - π Scheduled Announcements β Schedule one-time or recurring messages.
- βοΈ Runtime Config β All settings in PostgreSQL with live
/configcommand and web dashboard. - πΎ Backup & Restore β Export/import config with automatic scheduled backups.
- π Command Aliases β Custom shortcuts for commands (e.g.,
/wβ/warn). - π Performance Monitoring β Real-time memory, CPU, response time tracking with alerting.
- π‘ Webhook Notifications β Outbound webhooks for bot events (mod actions, errors, config changes).
- π Web Dashboard β Next.js admin panel with Discord OAuth2, dark/light themes, mobile support.
- π Analytics β Message activity, command usage, voice time, AI feedback, engagement metrics with PDF export.
- π Audit Log β Complete action history with filtering, CSV/JSON export, WebSocket streaming.
- π Conversation Viewer β Browse AI conversation history with search and filtering.
- β‘ Redis Caching β Distributed caching for config, Discord API, reputation, rate limiting.
- π Security β HMAC webhooks, prototype pollution protection, input validation, secrets management.
- π Health Monitoring β Built-in health checks and status reporting.
Discord User
β
βΌ
βββββββββββββββ ββββββββββββββββ
β Volvox.Bot ββββββΆβ Claude API β
β (Node.js) βββββββ (Anthropic)β
ββββββββ¬βββββββ ββββββββββββββββ
β
ββββββββββββββββ¬βββββββββββββββ
βΌ βΌ βΌ
ββββββββββββββββ ββββββββββββ ββββββββββββ
β PostgreSQL β β Redis β β Web β
β (Config + β β (Cache β β Dashboardβ
β State) β β + RL) β β β
ββββββββββββββββ ββββββββββββ ββββββββββββ
- Node.js 22+
- pnpm (
npm install -g pnpm) - PostgreSQL 17+
- Redis 7+ (recommended)
- Anthropic API key
- Discord application with bot token
git clone https://github.com/VolvoxLLC/volvox-bot.git
cd volvox-bot
pnpm installcp .env.example .envEdit config.json to match your Discord server.
- Create app at discord.com/developers/applications
- Bot β Add Bot β Copy token β
DISCORD_TOKEN - Enable Privileged Gateway Intents:
- β Message Content Intent
- β Server Members Intent
- β Guild Voice States Intent
- β Guild Message Reactions Intent
- OAuth2 β URL Generator:
- Scopes:
bot,applications.commands - Permissions: View Channels, Send Messages, Read Message History, Manage Messages, Add Reactions, Manage Roles
- Scopes:
- Invite bot to server
pnpm start| Variable | Description |
|---|---|
DISCORD_TOKEN |
Discord bot token |
ANTHROPIC_API_KEY |
Anthropic API key |
DATABASE_URL |
PostgreSQL connection string |
| Variable | Description | Default |
|---|---|---|
REDIS_URL |
Redis connection string (recommended) | β |
BOT_API_SECRET |
Secret for web dashboard API | β |
WEBHOOK_SECRET |
Secret for webhook HMAC signing | SESSION_SECRET |
SENTRY_DSN |
Sentry error tracking DSN | β |
LOG_LEVEL |
Logging level | info |
| Variable | Description |
|---|---|
NEXTAUTH_URL |
Dashboard canonical URL |
NEXTAUTH_SECRET |
JWT encryption secret |
DISCORD_CLIENT_ID |
Discord OAuth2 client ID (required for pnpm deploy) |
DISCORD_CLIENT_SECRET |
Discord OAuth2 client secret |
For one-off guild-scoped command deploys (dev only), use:
pnpm deploy -- --guild-id <your_guild_id>All configuration in config.json, editable via /config command or web dashboard.
aiβ AI chat, feedback, channel blocklistaiAutoModβ Auto-moderation thresholds and actionstriageβ Message triage and daily budgetwelcomeβ Welcome messages with templatesmoderationβ Mod features and protected rolesbackupβ Auto-backup schedule and retentionperformanceβ Monitoring and alert thresholds
See config.json for complete options.
pnpm test # Run tests
pnpm test:coverage # With coverage (80% threshold)
pnpm lint # Lint check- Dashboard Guide β Coming soon
- Backup Guide β Coming soon
- Troubleshooting β Coming soon
- API Reference β Coming soon
See CONTRIBUTING.md for development workflow and conventions.
MIT License β see LICENSE.
Built with β€οΈ by the Volvox team.