How krijn1992/discord-soundboard-bot-po-humo works
This is a Discord soundboard with an authenticated web interface and Discord slash-command/voice-event controls. The main workflow is: a server member signs in, browses or searches sounds, selects a voice channel, and requests playback; the bot validates and plays the sound, then records the event. Ratings form a parallel web workflow with persistent per-user votes and sorting. The graph follows the sampled calls and README capabilities; unsampled route wiring is not inferred beyond documented behavior.
Main entry points: index.js Web UI and routes · sounds.js Sound catalog and search · playback.js Voice playback · discordBot.js Bot commands and events
Components 16
Web interface
- Web UI and routes
src/index.js - OAuth and sessions
src/auth.js
Discord runtime
- Bot commands and events
src/services/discordBot.js
Soundboard services
- Voice playback
src/services/playback.js - Sound catalog and search
src/services/sounds.js - Votes and sorting
src/services/ratings.js - Playback event logger
src/services/logger.js
Configuration and helpers
- Runtime configuration
src/config.js - Path safety
src/utils/paths.js - HTML helpers
src/utils/html.js
Other components
- Server member
- Web browser
- Discord platform
- Sound directory
sounds - Ratings file
data - Session file store
Connections 23
- Server member → Web browser: uses
README.md - Web browser → OAuth and sessions: signs in
README.md - OAuth and sessions → Discord platform: OAuth login
src/auth.js - OAuth and sessions → Session file store: persists sessions
src/auth.js - Web browser → Web UI and routes: browses and votes
README.md - Web UI and routes → Sound catalog and search: lists and searches
src/index.js - Web UI and routes → Votes and sorting: loads and records votes
src/index.js - Web UI and routes → Bot commands and events: fetches voice channels
src/index.js - Web UI and routes → Voice playback: requests playback
src/index.js - Bot commands and events → Discord platform: handles commands and events
src/services/discordBot.js - Bot commands and events → Sound catalog and search: finds voice sounds
src/services/discordBot.js - Bot commands and events → Voice playback: requests playback
src/services/discordBot.js - Voice playback → Discord platform: joins voice channel
src/services/playback.js - Voice playback → Sound catalog and search: validates sound path
src/services/playback.js - Voice playback → Playback event logger: records playback
src/services/playback.js - Sound catalog and search → Sound directory: reads sound files
src/services/sounds.js - Votes and sorting → Ratings file: reads and writes votes
src/services/ratings.js - Votes and sorting → Sound catalog and search: validates voted file
src/services/ratings.js - Votes and sorting → Path safety: normalizes vote paths
src/services/ratings.js - Sound catalog and search → Path safety: safely resolves paths
src/services/sounds.js - Sound catalog and search → Runtime configuration: uses extensions and directories
src/services/sounds.js - Web UI and routes → Runtime configuration: validates and initializes
src/index.js - Web UI and routes → HTML helpers: renders escaped pages
src/index.js