Implemented Phase 1 of ClaudeTools Discord bot with: Core Features: - Discord.py bot with message content intents - Claude API integration with streaming responses - Thread-based conversations with context management - @mention handling with automatic thread creation - Tool definitions for future ClaudeTools/remediation integration Architecture: - bot/main.py: Entry point with Discord client setup - bot/config.py: Pydantic Settings for environment config - bot/claude/client.py: Anthropic SDK wrapper with streaming - bot/claude/tools.py: Tool definitions and system prompt - bot/handlers/message_handler.py: Discord message handling Configuration: - requirements.txt: Python dependencies (discord.py, anthropic, httpx) - .env.example: Environment variable template - .gitignore: Sensitive data protection - README.md: Comprehensive setup and usage guide Next Steps (Phase 2): - Implement tool execution (ClaudeTools API client) - Add user role mapping and permissions - Implement audit logging Deployment Target: BEAST (Windows) as NSSM service Test: @ClaudeTools hello should create thread and stream response Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
22 lines
503 B
Plaintext
22 lines
503 B
Plaintext
# Discord Configuration
|
|
DISCORD_TOKEN=your_discord_bot_token_here
|
|
DISCORD_GUILD_ID=your_guild_id_here
|
|
|
|
# Anthropic Claude API
|
|
ANTHROPIC_API_KEY=your_anthropic_api_key_here
|
|
|
|
# ClaudeTools API
|
|
CLAUDETOOLS_API_URL=http://172.16.3.30:8001
|
|
CLAUDETOOLS_API_KEY=your_api_key_here
|
|
|
|
# File Paths (Windows paths for BEAST)
|
|
VAULT_PATH=D:\vault
|
|
CLAUDETOOLS_ROOT=D:\claudetools
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO
|
|
LOG_FILE=logs/bot.log
|
|
|
|
# Optional: Override Git Bash location
|
|
# GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
|