- Implement `llm.py` with OpenAI API integration for smart responses.
- Implement `scheduler.py` to send a daily summary to the bot owner using `python-telegram-bot`'s `JobQueue`.
- Integrate the scheduler into the main application.
- Add `pytz` as a new dependency.
- Update `tasks.md` to mark all tasks as complete.
This commit introduces a new `/print` command that is restricted to authorized users. The command displays non-sensitive configuration details to administrators.
The main changes are:
- Created `app/modules/print.py` to house the handler for the new command.
- The handler uses the existing `is_admin` function from `app/permissions.py` to check for authorization.
- The command displays the Timezone, Calendar ID, and n8n Webhook URL.
- Integrated the new command into `app/main.py`.
- Updated `tasks.md` to document the new feature.
This commit finalizes Phase 4 of the project by implementing the
LLM and scheduler integrations.
- Implements `get_smart_response` in `app/llm.py` to generate
AI-powered responses using the OpenAI API.
- Implements a daily summary scheduler in `app/scheduler.py` using
the `JobQueue` from `python-telegram-bot` for better integration
with the application's event loop.
- Adds `get_events_for_day` to `app/calendar.py` to fetch daily
events for the summary.
- Integrates the scheduler into the main application loop in
`app/main.py`.
- Improves the date formatting in the daily summary for better
readability.
- Updates `tasks.md` to reflect the completion of Phase 4.
- Creates the initial project structure for the Talía bot, including the `app` and `app/modules` directories.
- Adds placeholder files for the core application logic, modules, and configuration.
- Includes a `Dockerfile` and `docker-compose.yml` for containerization.
- Adds a `requirements.txt` file with the necessary dependencies.
- Creates a `tasks.md` file to track development progress.