How urekd/steam-workshop-monitor works
Steam-Workshop-Monitor is a Discord bot for tracking Steam Workshop mods. In the principal workflow, guild members use slash commands to manage monitored mods; the bot checks Steam for update times, compares them with stored state, and notifies Discord. The current bot also manages guild, channel, role, and mod data across MySQL and Redis. A separate older, file-backed bot remains in the repository, as does a statistics badge generator. Some runtime sections were not excerpted, so only documented or directly visible relationships are shown.
Main entry points: WorkshopMonitor.py Slash commands · Old-No-DB/WorkshopMonitor.py File-backed bot · stats.py Stats generator · config.json JSON mod config
Components 16
Discord Bot
- Slash commands
WorkshopMonitor.py - Guild lifecycle
WorkshopMonitor.py - Notifications
WorkshopMonitor.py
Workshop Monitoring
- Monitor cycle
WorkshopMonitor.py - Mod checks
WorkshopMonitor.py - Collection import
WorkshopMonitor.py
Persistent State
- MySQL data
WorkshopMonitor.py - Redis cache
WorkshopMonitor.py
Legacy Bot
- File-backed bot
Old-No-DB/WorkshopMonitor.py - JSON mod config
Old-No-DB/data/config.json
Statistics
- Stats generator
stats/stats.py - Stats database
stats/stats.py - Badge output
stats/stats.py
Other components
- Guild members
- Discord
- Steam API
Connections 20
- Guild members → Slash commands: uses
README.md - Slash commands → Discord: responds through
WorkshopMonitor.py - Monitor cycle → Mod checks: checks mods
WorkshopMonitor.py - Mod checks → Steam API: queries updates
WorkshopMonitor.py - Mod checks → MySQL data: compares stored times
README.md - Monitor cycle → Notifications: reports updates
README.md - Notifications → Discord: sends alerts
README.md - Slash commands → MySQL data: manages mod data
WorkshopMonitor.py - Slash commands → Collection import: imports collection
WorkshopMonitor.py - Collection import → Steam API: fetches collection
WorkshopMonitor.py - Collection import → MySQL data: stores imported mods
WorkshopMonitor.py - Slash commands → Redis cache: refills cache
WorkshopMonitor.py - Guild lifecycle → MySQL data: updates guild records
WorkshopMonitor.py - Guild lifecycle → Redis cache: clears guild keys
WorkshopMonitor.py - Discord → Guild lifecycle: signals membership changes
WorkshopMonitor.py - File-backed bot → JSON mod config: reads and writes
Old-No-DB/WorkshopMonitor.py - File-backed bot → Steam API: checks Workshop
Old-No-DB/WorkshopMonitor.py - File-backed bot → Discord: sends notifications
Old-No-DB/WorkshopMonitor.py - Stats generator → Stats database: queries counts
stats/stats.py - Stats generator → Badge output: renders badge
stats/stats.py