mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 13:25:19 +00:00
refactor: Overhaul project structure and role management
This commit implements the first phase of the new architectural vision for the Talia Bot.
Key changes include:
- Renamed the main application directory from `app` to `talia_bot` and updated all associated imports and configurations (`Dockerfile`, tests).
- Replaced the static, `.env`-based permission system with a dynamic, database-driven role management system.
- Introduced a `db.py` module to manage a SQLite database (`users.db`) for user persistence.
- Updated `identity.py` to fetch roles ('admin', 'crew', 'client') from the database.
- Rewrote the `README.md` and `.env.example` to align with the new project specification.
- Refactored the LLM module into the new `modules` structure.
This commit is contained in:
26
.env.example
26
.env.example
@@ -1,12 +1,18 @@
|
||||
# --- TELEGRAM & SECURITY ---
|
||||
TELEGRAM_BOT_TOKEN=
|
||||
OWNER_CHAT_ID=
|
||||
ADMIN_CHAT_IDS=
|
||||
TEAM_CHAT_IDS=
|
||||
GOOGLE_SERVICE_ACCOUNT_FILE=
|
||||
CALENDAR_ID=
|
||||
N8N_WEBHOOK_URL=
|
||||
ADMIN_ID=
|
||||
|
||||
# --- AI CORE ---
|
||||
OPENAI_API_KEY=
|
||||
OPENAI_MODEL=gpt-3.5-turbo
|
||||
DAILY_SUMMARY_TIME=07:00
|
||||
CALENDLY_LINK=https://calendly.com/user/appointment-link
|
||||
TIMEZONE=America/Mexico_City
|
||||
|
||||
# --- INTEGRATIONS ---
|
||||
VIKUNJA_API_URL=https://tuservidor.com/api/v1
|
||||
VIKUNJA_TOKEN=
|
||||
GOOGLE_CREDENTIALS_PATH=./data/credentials.json
|
||||
|
||||
# --- PRINT SERVICE ---
|
||||
SMTP_SERVER=smtp.hostinger.com
|
||||
SMTP_PORT=465
|
||||
SMTP_USER=print.service@vanityexperience.mx
|
||||
SMTP_PASS=
|
||||
IMAP_SERVER=imap.hostinger.com
|
||||
|
||||
Reference in New Issue
Block a user