Daia: Discord AI Agent

Daia (Discord AI Agent) is an intelligent Discord bot optimized for Google Gemini and built on the PocketFlow framework. It provides conversational AI capabilities with advanced features like markdown table rendering, message history processing, and Google Search integration.
Features
- AI-Powered Conversations: Leverages Google Gemini for natural language understanding and generation.
- User Recognition: Recognizes and addresses users by their display name for a personalized experience.
- Smart Message Processing: Processes Discord message history with context awareness.
-
Markdown Table Rendering: Automatically converts markdown tables to images using Noto Sans CJK fonts. Supported languages include but are not limited to English, Simplified Chinese (简体中文), Traditional Chinese (繁體中文), Japanese (日本語), and Korean (한국어).

- Smart Chunking: Automatically splits long messages into smaller chunks, preserving markdown formatting to avoid Discord’s character limit.
- Google Search Integration: Built-in search capabilities through Gemini tools.
- Slash Commands: Includes a
/newchatcommand for starting fresh conversation sessions.
Quick Start
# Clone the repository
git clone https://github.com/zhiro-labs/daia.git
cd daia
# Install dependencies
uv sync
# Configure
cp .env.example .env
cp config/chat_sys_prompt.txt.example config/chat_sys_prompt.txt
cp config/runtime.yml.example config/runtime.yml
# Edit .env with your tokens
# Run
uv run main.py
See Getting Started for detailed instructions.