How leea28/sumup works
SumUp is a Discord catch-up bot: a user requests a private summary, the bot chooses the channel-history window, formats messages, asks an AI model to summarize them, and records successful catch-up state. The graph includes the documented command and privacy/settings capabilities. Source evidence is strongest for the excerpted bot, database, summarizer, and time utilities; the README documents major behavior where the excerpt omits command details.
Main entry points: bot.py Commands and orchestration · summarizer.py Summary generation · state.py User state access · timeutils.py Since and timezone parsing
Components 10
Discord interaction
- Commands and orchestration
bot.py
Catch-up workflow
- History window selection
bot.py - Transcript formatting
bot.py - Summary generation
summarizer.py
User settings
- Since and timezone parsing
timeutils.py - User state access
state.py
External services
- PostgreSQL state
- Discord platform
- OpenAI API
Other components
- Discord user
Connections 11
- Discord user → Commands and orchestration: invokes commands
README.md - Commands and orchestration → Discord platform: reads channel history
README.md - Commands and orchestration → History window selection: selects messages
bot.py - Commands and orchestration → Since and timezone parsing: parses since
bot.py - Commands and orchestration → User state access: loads and saves state
bot.py - History window selection → Transcript formatting: formats messages
bot.py - Commands and orchestration → Summary generation: requests summary
bot.py - Summary generation → OpenAI API: sends transcript
summarizer.py - Commands and orchestration → Discord platform: sends private reply
README.md - User state access → PostgreSQL state: reads and writes
state.py - Commands and orchestration → Discord platform: registers commands
bot.py