discord bot
All checks were successful
Build and Push Discord Bot Docker Image / build (push) Successful in 1m5s

This commit is contained in:
2025-12-26 16:21:28 +01:00
parent 7d77d6299f
commit 0cd17238d0
12 changed files with 1156 additions and 0 deletions

25
discord/.env.example Normal file
View File

@@ -0,0 +1,25 @@
# Discord Bot Token (required)
DISCORD_BOT_TOKEN=your-bot-token-here
# Agent server URL (required)
AGENT_URL=http://localhost:8000
# Channel IDs where bot responds to @mentions (JSON array, required)
DISCORD_ALLOWED_CHANNELS=["123456789012345678"]
# Channel IDs where bot responds to ALL messages (JSON array, optional)
DISCORD_AMBIENT_CHANNELS=[]
# Default roles for document access (JSON array)
DISCORD_DEFAULT_ROLES=["public"]
# Request sources-only mode from agent
DISCORD_SOURCES_ONLY=false
# Rate limiting
RATE_LIMIT_USER_SECONDS=30
RATE_LIMIT_GLOBAL_PER_MINUTE=20
# Logging
LOG_LEVEL=INFO
ENVIRONMENT=development