mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-24 02:36:41 +02:00
feat(matrix): add Stats Bot and Project Doc Bot services
Complete GDPR-compliant bot suite for Matrix: matrix-stats-bot (port 3312): - Analytics reports from Umami - Commands: !stats, !today, !week, !realtime, !users - Scheduled daily/weekly reports to Matrix room matrix-project-doc-bot (port 3313): - Project documentation with photos, voice, text - Voice transcription via OpenAI Whisper - Blog generation with 5 styles (casual, technical, tutorial, social, story) - Commands: !new, !projects, !switch, !status, !generate, !export - Uses PostgreSQL + S3 (MinIO) for storage Changes: - docker-compose.macmini.yml: Added both Matrix bots - health-check.sh: Added health checks for both bots Environment variables required: - MATRIX_STATS_BOT_TOKEN, MATRIX_PROJECT_DOC_BOT_TOKEN - OPENAI_API_KEY (for Project Doc Bot) https://claude.ai/code/session_01E3r5aFW3YLAhEJfsL2ryhv
This commit is contained in:
parent
aabe328b51
commit
7c5e9e3c49
46 changed files with 2215 additions and 0 deletions
23
services/matrix-project-doc-bot/.env.example
Normal file
23
services/matrix-project-doc-bot/.env.example
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
PORT=3313
|
||||
|
||||
# Matrix
|
||||
MATRIX_HOMESERVER_URL=http://localhost:8008
|
||||
MATRIX_ACCESS_TOKEN=syt_xxx
|
||||
# Optional: Restrict to specific users (comma-separated)
|
||||
MATRIX_ALLOWED_USERS=
|
||||
MATRIX_STORAGE_PATH=./data/bot-storage.json
|
||||
|
||||
# Database
|
||||
DATABASE_URL=postgresql://postgres:password@localhost:5432/project_doc_bot
|
||||
|
||||
# S3 Storage
|
||||
S3_ENDPOINT=http://localhost:9000
|
||||
S3_REGION=us-east-1
|
||||
S3_ACCESS_KEY=minioadmin
|
||||
S3_SECRET_KEY=minioadmin
|
||||
S3_BUCKET=project-doc-bot
|
||||
|
||||
# OpenAI
|
||||
OPENAI_API_KEY=
|
||||
OPENAI_MODEL=gpt-4o-mini
|
||||
OPENAI_WHISPER_MODEL=whisper-1
|
||||
Loading…
Add table
Add a link
Reference in a new issue