mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 13:25:19 +00:00
This commit refactors the application's configuration handling to perfectly match the structure and variable names provided by the user in their `.env` file. This resolves multiple critical discrepancies that would have prevented the bot from functioning correctly. - **Update `config.py`:** The file `talia_bot/config.py` has been completely rewritten to load environment variables using the names specified by the user (e.g., `TELEGRAM_OWNER_CHAT_ID`, `GOOGLE_CALENDAR_ID`, `VIKUNJA_BASE_URL`). - **Update Printer Logic:** The `talia_bot/modules/printer.py` module has been updated to use the new `PRINTER_EMAIL` variable and the specific IMAP credentials (`IMAP_USER`, `IMAP_PASSWORD`), rather than reusing SMTP credentials. - **Update `.env.example`:** The `.env.example` template file has been rewritten to serve as an accurate and well-documented guide that matches the user's `.env` structure. This change ensures that the bot is now fully synchronized with the user's deployment environment, resolving previous inconsistencies and improving the overall robustness of the configuration.
70 lines
2.2 KiB
Plaintext
70 lines
2.2 KiB
Plaintext
# ==================================================
|
|
# Telegram Configuration
|
|
# ==================================================
|
|
# Get your bot token from @BotFather on Telegram.
|
|
TELEGRAM_BOT_TOKEN=
|
|
# Your personal Telegram user ID. The bot will send you admin notifications.
|
|
TELEGRAM_OWNER_CHAT_ID=
|
|
|
|
# ==================================================
|
|
# Google Services
|
|
# ==================================================
|
|
# The path to your Google Cloud service account credentials file.
|
|
GOOGLE_SERVICE_ACCOUNT_FILE=google_key.json
|
|
# The ID of the Google Calendar you want the bot to manage.
|
|
GOOGLE_CALENDAR_ID=
|
|
|
|
# ==================================================
|
|
# Webhooks (n8n)
|
|
# ==================================================
|
|
# The URL for your production n8n webhook.
|
|
N8N_WEBHOOK_URL=
|
|
# The URL for your test n8n webhook.
|
|
N8N_WEBHOOK_TEST_URL=
|
|
|
|
# ==================================================
|
|
# AI Core
|
|
# ==================================================
|
|
# Your API key from OpenAI.
|
|
OPENAI_API_KEY=
|
|
# The specific OpenAI model to use (e.g., gpt-4o-mini, gpt-4-turbo).
|
|
OPENAI_MODEL=gpt-4o-mini
|
|
# The time for the AI to send a daily summary (HH:MM format).
|
|
AI_DAILY_SUMMARY_TIME=08:00
|
|
# The timezone for scheduling and date/time operations (e.g., America/Mexico_City, America/Bogota).
|
|
TIMEZONE=America/Monterrey
|
|
|
|
# ==================================================
|
|
# Scheduling
|
|
# ==================================================
|
|
# Your Calendly link for appointment scheduling.
|
|
CALENDLY_LINK=
|
|
|
|
# ==================================================
|
|
# Vikunja (Task Management)
|
|
# ==================================================
|
|
# The base URL for your Vikunja instance's API.
|
|
VIKUNJA_BASE_URL=
|
|
# Your API token for Vikunja.
|
|
VIKUNJA_TOKEN=
|
|
|
|
# ==================================================
|
|
# Email Configuration (SMTP / IMAP)
|
|
# ==================================================
|
|
# SMTP server for sending emails.
|
|
SMTP_SERVER=
|
|
SMTP_PORT=
|
|
SMTP_USER=
|
|
SMTP_PASSWORD=
|
|
|
|
# IMAP server for reading emails.
|
|
IMAP_SERVER=
|
|
IMAP_USER=
|
|
IMAP_PASSWORD=
|
|
|
|
# ==================================================
|
|
# Printer (Epson Connect)
|
|
# ==================================================
|
|
# The dedicated email address for your printer.
|
|
PRINTER_EMAIL=
|