How ki1ian/lena works
Lena is a Discord task-and-reminder assistant. Users add, find, list, remove, and review dated tasks through slash commands; commands use task/date logic and SQLite, while calendar-image commands render calendar views. A scheduled digest combines task status with saved personalization and optional weather. The graph preserves documented calendar-range and digest capabilities; some command bodies were omitted, so those links rely on the README rather than inspected call sites.
Main entry points: bot.py Digest composer · database.py Task storage · ui_components.py Removal buttons · weather.py Weather forecast
Components 16
Discord interaction
- Discord platform
- Slash commands
bot.py - Removal buttons
ui_components.py
Task management
- Task operations
bot.py - Date parsing
bot.py - Task model
task.py - Task storage
database.py
Calendar views
- Calendar data
database.py - Range views
bot.py - Calendar images
calendar_image.py
Digest and preferences
- Daily scheduler
bot.py - Digest composer
bot.py - Personal settings
database.py - Weather forecast
weather.py - OpenWeatherMap
Other components
- Server user
Connections 17
- Server user → Discord platform: uses commands
README.md - Discord platform → Slash commands: dispatches
README.md - Slash commands → Task operations: routes task actions
README.md - Task operations → Date parsing: parses due dates
README.md - Task operations → Task storage: reads and writes
bot.py - Task storage → Task model: builds tasks
database.py - Task operations → Removal buttons: prompts selection
bot.py - Removal buttons → Task storage: removes selected task
ui_components.py - Slash commands → Range views: routes range views
README.md - Range views → Calendar data: gets due tasks
bot.py - Range views → Calendar images: renders calendars
README.md - Daily scheduler → Digest composer: triggers daily
bot.py - Digest composer → Task storage: reads tasks
bot.py - Digest composer → Personal settings: reads preferences
bot.py - Digest composer → Weather forecast: gets forecast
bot.py - Weather forecast → OpenWeatherMap: requests forecast
weather.py - Digest composer → Discord platform: posts digest
bot.py