mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 21:35:19 +00:00
feat: Initial project structure
- 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.
This commit is contained in:
27
app/scheduler.py
Normal file
27
app/scheduler.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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()
|
||||
Reference in New Issue
Block a user