How kazzyapi/steam-report-bot works
Steam Report Bot is a Discord command bot for Steam-profile reporting, account balances and keys, watchlists, whitelists, and ban notifications. Users issue prefixed commands; the message handlers dispatch commands, which use MongoDB-backed records and, for reports, Steam accounts and proxies. A scheduled app process checks watched profiles for community bans and updates Discord notifications and counters. The excerpts show the report and watchlist paths in detail; other command capabilities are represented from the source index and README, so their internal connections are omitted where implementation evidence is unavailable.
Main entry points: app.js Bot bootstrap · report.js Report workflow · redeem.js Redeem key · message.js Message dispatch
Components 20
Bot runtime
- Bot bootstrap
app.js - Message dispatch
events/guild/message.js - DM dispatch
events/guild/dm.js
User commands
- General commands
Commands/General - Key management
Commands/General/genkey.js - Redeem key
Commands/General/redeem.js - Balance lookup
Commands/General/balance.js - Whitelist control
Commands/General/whitelist.js
MongoDB records
- Watched profiles
Schemas/banCheckSchema.js - User balances
Schemas/userSchema.js - Redeemable keys
Schemas/keySchema.js - Whitelist entries
Schemas/whitelistSchema.js - Usage counters
Schemas/statsSchema.js
Steam reporting
- Report workflow
Commands/General/report.js - Account report history
reportData.json
Ban monitoring
- Watch command
Commands/General/watchlist.js
Other components
- Discord users
- Discord
- Steam Community
- Proxy endpoints
Connections 26
- Discord users → Discord: send commands
README.md - Discord → Message dispatch: delivers messages
- Discord → DM dispatch: delivers DMs
- Bot bootstrap → Message dispatch: loads handlers
- Bot bootstrap → Discord: logs in
app.js - Message dispatch → General commands: dispatches commands
events/guild/message.js - DM dispatch → General commands: dispatches commands
events/guild/dm.js - Report workflow → User balances: checks balance
Commands/General/report.js - Report workflow → Whitelist entries: checks whitelist
Commands/General/report.js - Report workflow → Usage counters: increments reports
Commands/General/report.js - Report workflow → Account report history: reads and writes
Commands/General/report.js - Report workflow → Steam Community: submits reports
Commands/General/report.js - Report workflow → Proxy endpoints: routes requests
Commands/General/report.js - Report workflow → Discord: sends status
Commands/General/report.js - Watch command → Watched profiles: adds watched profile
Commands/General/watchlist.js - Redeem key → Redeemable keys: consumes key
Commands/General/redeem.js - Redeem key → User balances: credits balance
Commands/General/redeem.js - Redeem key → Discord: assigns role
Commands/General/redeem.js - Balance lookup → User balances: reads balance
Commands/General/balance.js - Whitelist control → Whitelist entries: manages entries
Commands/General/whitelist.js - Bot bootstrap → Watched profiles: checks watched users
app.js - Bot bootstrap → Steam Community: checks bans
app.js - Bot bootstrap → Discord: notifies ban channel
app.js - Bot bootstrap → Usage counters: updates counters
app.js - Bot bootstrap → Whitelist entries: counts entries
app.js - Bot bootstrap → Discord: updates channel counts
app.js