How bluehorizon65/discord-bot works
This is a Discord bot combining SoundCloud music playback and Valorant lookup tools. Discord interactions enter through the client dispatcher, which routes slash commands and music buttons; music commands delegate playback and queue controls to the player. Valorant commands provide stats, rank, match, account-related, and skin features, with sampled code confirming external API use for stats and skins. Several command implementations are indexed but not excerpted, so their details and external dependencies are not inferred.
Main entry points: index.js Interaction dispatcher · player.js Queue and player · play.js Play command · pause.js Pause command
Components 21
Discord runtime
- Interaction dispatcher
index.js - Chat command
commands/chat.js
Music playback
- Music commands
commands - Play command
commands/play.js - Pause command
commands/pause.js - Resume command
commands/resume.js - Skip command
commands/skip.js - Stop command
commands/stop.js - Queue command
commands/queue.js - Volume command
commands/volume.js - Queue and player
music/player.js
Valorant tools
- Player stats
commands/stats.js - Skin browser
commands/skins.js - Rank lookup
commands/rank.js - Match lookup
commands/match.js - Valorant command
commands/valorant.js
Other components
- Discord user
- SoundCloud
- Discord voice
- HenrikDev API
- Valorant API
Connections 26
- Discord user → Interaction dispatcher: sends interaction
index.js - Interaction dispatcher → Play command: dispatches command
index.js - Interaction dispatcher → Pause command: dispatches command
index.js - Interaction dispatcher → Resume command: dispatches command
index.js - Interaction dispatcher → Skip command: dispatches command
index.js - Interaction dispatcher → Stop command: dispatches command
index.js - Interaction dispatcher → Queue command: dispatches command
index.js - Interaction dispatcher → Volume command: dispatches command
index.js - Interaction dispatcher → Player stats: dispatches command
index.js - Interaction dispatcher → Skin browser: dispatches command
index.js - Interaction dispatcher → Rank lookup: dispatches command
index.js - Interaction dispatcher → Match lookup: dispatches command
index.js - Interaction dispatcher → Valorant command: dispatches command
index.js - Interaction dispatcher → Chat command: dispatches command
index.js - Play command → Queue and player: adds track
commands/play.js - Pause command → Queue and player: pauses playback
commands/pause.js - Resume command → Queue and player: resumes playback
commands/resume.js - Skip command → Queue and player: skips track
commands/skip.js - Stop command → Queue and player: stops queue
commands/stop.js - Queue command → Queue and player: reads queue
commands/queue.js - Volume command → Queue and player: sets volume
commands/volume.js - Queue and player → SoundCloud: searches and streams
music/player.js - Queue and player → Discord voice: joins and plays audio
music/player.js - Player stats → HenrikDev API: fetches player data
commands/stats.js - Skin browser → Valorant API: fetches skins
commands/skins.js - Interaction dispatcher → Queue and player: routes music buttons
index.js