mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 22:26:42 +02:00
feat(matrix-nutriphi-bot): add Matrix bot for nutrition tracking
- NestJS bot with matrix-bot-sdk integration - Commands: !help, !login, !analyze, !today, !week, !goals, !favorites, !tips - Integrates with NutriPhi backend API (port 3023) - User session management with JWT authentication - Image analysis via Gemini AI (NutriPhi backend) - Port 3316 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
111fc473d9
commit
57b9d4cb37
34 changed files with 3241 additions and 463 deletions
20
services/matrix-nutriphi-bot/.env.example
Normal file
20
services/matrix-nutriphi-bot/.env.example
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Server
|
||||
PORT=3316
|
||||
NODE_ENV=development
|
||||
|
||||
# Matrix
|
||||
MATRIX_HOMESERVER_URL=http://localhost:8008
|
||||
MATRIX_ACCESS_TOKEN=syt_xxx_your_bot_token
|
||||
MATRIX_ALLOWED_ROOMS=#nutriphi:matrix.mana.how
|
||||
MATRIX_STORAGE_PATH=./data/bot-storage.json
|
||||
|
||||
# NutriPhi Backend
|
||||
NUTRIPHI_BACKEND_URL=http://localhost:3023
|
||||
NUTRIPHI_API_PREFIX=/api/v1
|
||||
|
||||
# Mana Core Auth
|
||||
MANA_CORE_AUTH_URL=http://localhost:3001
|
||||
|
||||
# Development bypass (optional)
|
||||
DEV_BYPASS_AUTH=false
|
||||
DEV_USER_ID=
|
||||
Loading…
Add table
Add a link
Reference in a new issue