How studylions/studylion works
LionBot is a Discord study and productivity bot. Members invoke commands and interactive features to track study/work activity, view statistics, and use productivity tools; server administrators configure moderation, rooms, and other guild features. The graph preserves the README’s major capability branches and the sampled runtime foundation. Several feature implementations were not sampled, so their internal calls and persistence links are omitted rather than inferred.
Main entry points: LionBot.py Command runtime · schedule Scheduled sessions · moderation Moderation · data.py Core data models
Components 24
Bot runtime
- Command runtime
src/meta/LionBot.py - Command context
src/meta/LionContext.py
Tracking and insights
- Voice tracking
src/tracking/voice - Text tracking
src/tracking/text - Statistics and cards
src/modules/statistics - Study tiers
src/modules/ranks - Achievements
src/modules/statistics/achievements.py
Productivity tools
- Pomodoro timers
src/modules/pomodoro - To-do lists
src/modules/tasklist - Reminders
src/modules/reminders - Scheduled sessions
src/modules/schedule
Community features
- Private and workout rooms
src/modules/rooms - Camera-only rooms
src/modules/video_channels - Economy and shop
src/modules/economy - Moderation
src/modules/moderation - Role menus
src/modules/rolemenus
Shared foundation
- Core data models
src/core/data.py - Database access
src/data/database.py - Localization
src/babel/translator.py - Settings framework
src/settings - Permission checks
src/wards.py - Analytics service
src/analytics - Shard coordination
src/meta/sharding.py
Other components
- Discord member
Connections 25
- Discord member → Command runtime: invokes commands
- Command runtime → Command context: builds context
src/meta/LionBot.py - Command runtime → Voice tracking: loads extension
src/meta/LionBot.py - Command runtime → Text tracking: loads extension
src/meta/LionBot.py - Command runtime → Statistics and cards: loads extension
src/meta/LionBot.py - Command runtime → Pomodoro timers: loads extension
src/meta/LionBot.py - Command runtime → Scheduled sessions: loads extension
src/meta/LionBot.py - Discord member → Statistics and cards: views stats
- Discord member → Pomodoro timers: starts timers
- Discord member → To-do lists: manages tasks
- Discord member → Reminders: sets reminders
- Discord member → Scheduled sessions: books sessions
- Discord member → Private and workout rooms: rents rooms
- Discord member → Camera-only rooms: uses rooms
- Discord member → Study tiers: views tiers
- Discord member → Achievements: earns rewards
- Discord member → Economy and shop: spends coins
- Discord member → Moderation: interacts with
- Discord member → Role menus: selects roles
- Command runtime → Localization: uses translator
src/meta/LionBot.py - Command runtime → Shard coordination: uses shard config
src/meta/LionBot.py - Core data models → Database access: uses data layer
src/core/data.py - Analytics service → Core data models: imports core data
src/analytics/server.py - Scheduled sessions → Settings framework: uses settings
- Moderation → Permission checks: checks permissions