diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-12 21:52:57 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-12 21:52:57 -0500 |
| commit | 1b4dc94eb261e3f3cd22dc12fbc1941e2a545cb9 (patch) | |
| tree | edae72e4c59e25dcd15b898792bf0932e29ad0f4 /Omni/Agent.hs | |
| parent | 862b10aa05ef66af5a88f307e6209ce10185bbcf (diff) | |
feat: add reminder service for todos
Adds a background reminder loop that checks every 5 minutes for overdue
todos and sends Telegram notifications.
Changes:
- Add last_reminded_at column to todos table with auto-migration
- Add listTodosDueForReminder to find overdue, unreminded todos
- Add markReminderSent to update reminder timestamp
- Add user_chats table to map user_id -> chat_id for notifications
- Add recordUserChat called on each message to track chat IDs
- Add reminderLoop forked in runTelegramBot
- 24-hour anti-spam interval between reminders per todo
Diffstat (limited to 'Omni/Agent.hs')
0 files changed, 0 insertions, 0 deletions
