mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 13:25:19 +00:00
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.
18 lines
535 B
Python
18 lines
535 B
Python
# app/modules/citas.py
|
|
# Este módulo maneja la programación de citas para los clientes.
|
|
# Permite a los usuarios obtener un enlace para agendar una reunión.
|
|
|
|
from config import CALENDLY_LINK
|
|
|
|
def request_appointment():
|
|
"""
|
|
Proporciona al usuario un enlace para agendar una cita.
|
|
|
|
Usa el enlace configurado en las variables de entorno.
|
|
"""
|
|
response_text = (
|
|
"Para agendar una cita, por favor utiliza el siguiente enlace: \n\n"
|
|
f"[Agendar Cita]({CALENDLY_LINK})"
|
|
)
|
|
return response_text
|