Files
talia_bot/app/scheduler.py
google-labs-jules[bot] 48f932c134 feat: Add /print command for authorized users
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.
2025-12-15 23:44:15 +00:00

28 lines
550 B
Python

# app/scheduler.py
import schedule
import time
from datetime import datetime
from config import TIMEZONE
def send_daily_summary():
"""
Sends the daily summary to the owner.
"""
print(f"[{datetime.now()}] Sending daily summary...")
# TODO: Implement the logic to fetch and send the summary
def main():
"""
Main function to run the scheduler.
"""
schedule.every().day.at("07:00").do(send_daily_summary)
while True:
schedule.run_pending()
time.sleep(1)
if __name__ == "__main__":
main()