Commit Graph

7 Commits

Author SHA1 Message Date
bd73fe68ce Add image/GIF sending support in bot responses
- Extract image URLs from AI responses
- Send images as Discord embeds
- Support standalone URLs and markdown image syntax
- Clean image URLs from text to avoid duplication
- Handle multiple images in a single response
2026-01-11 21:00:36 +01:00
1f6e792fa3 Add user-friendly error messages for API errors
- Detect credit/quota exhaustion and show helpful message
- Handle authentication errors gracefully
- Handle model not found errors
- Handle content policy violations
- Fall back to generic error for unknown issues
2026-01-11 20:58:08 +01:00
4ac123be9c Add image and GIF vision support
- Add ImageAttachment dataclass for image metadata
- Update Message to support list of image attachments
- Update all providers (OpenAI, Anthropic, Gemini, OpenRouter) for vision
- Extract images from Discord attachments and embeds in ai_chat.py
- Supports PNG, JPEG, GIF, and WebP formats
2026-01-11 20:56:50 +01:00
8f521b869b Add user context for mentioned users in messages
- Bot now knows who is talking to it (display name, username, nickname)
- Bot recognizes other users mentioned in messages
- Includes user's display name, username, nickname, and top role
- Context is added to system prompt for AI awareness
2026-01-11 20:53:16 +01:00
6a9b6fdda2 Add SearXNG web search for current information
- Add searxng.py service for web queries via SearXNG API
- Integrate search into ai_chat.py with AI-driven search decisions
- AI determines if query needs current info, then searches automatically
- Add SEARXNG_URL, SEARXNG_ENABLED, SEARXNG_MAX_RESULTS config options
- Update documentation in README.md, CLAUDE.md, and .env.example
2026-01-11 20:49:20 +01:00
b05fa034a6 Refactor: remove unused cogs and services, simplify architecture
- Remove admin.py and search.py cogs
- Remove searxng.py service and rate_limiter.py utility
- Update bot.py, ai_chat.py, config.py, and ai_service.py
- Update documentation and docker-compose.yml
2026-01-11 18:41:23 +01:00
561f1a8fb1 first commit 2026-01-10 21:46:27 +01:00