A lightweight Discord music bot that streams high-quality audio from YouTube directly into your voice channels.
| Command | Description |
|---|---|
/play <query> |
Search YouTube and play a song, or add it to the queue |
/skip |
Skip the currently playing song |
/pause |
Pause playback |
/resume |
Resume playback |
/stop |
Stop playback, clear the queue, and disconnect |
Search and play any track directly from YouTube using the
/play command.
Add multiple songs to the queue. The bot keeps playing until the queue is empty.
Audio streams at 96kbps Opus for minimal delay during playback.
Remains in the voice channel between songs so you can queue new tracks anytime.
All commands use Discord's slash command system. No prefix needed.
Minimal configuration required. Just a token in
.env and FFmpeg installed.
.env file
Full source code included. Extract and follow the guide.