A fully-featured Discord music bot written in Python, powered by discord.py, yt-dlp, and FFmpeg.
Stream YouTube audio into voice channels, search songs, manage queues β and deploy it anywhere via Docker. π³
- π§ Join & leave voice channels
- π
!searchto find YouTube music via keywords or Spotify links (converted to YouTube) βΆοΈ !playto queue and stream songs- βΈ
!pause, β―!resume,!skip,!prevβ!leavecommands - π
!queueto show current and upcoming tracks - β Auto disconnect when alone
- π³ Easy deployment with Docker
| Command | Aliases | Description |
|---|---|---|
!join |
!j, !ahoy |
Bot joins your voice channel |
!play |
!p, !Play |
Plays a song from queue or resumes paused playback |
!search |
!s, !sr |
Search YouTube and select from a result dropdown |
!pause |
!ps, !stop |
Pause current playback |
!resume |
!res, !r |
Resume paused playback |
!queue |
!q, !list |
Show currently playing and queued songs |
!skip |
!next, !n |
Skip the current song and play the next one in queue |
!prev |
!back, !b |
Go back to the previous song (if available) |
!leave |
!l, !byebye |
Disconnect the bot from the voice channel |
- Python 3.11+
ffmpegPyNaClyt-dlp- A Discord bot token from Discord Developer Portal
git clone https://github.com/AlexanderWeismannn/Py-Music-Bot.git
cd music-bot
pip install -r requirements.txtYou can run this music bot instantly using Docker β no Python or dependencies required.
-
Download the Docker image
- π¦ Download
music-bot.tar - Invite Bot Invite Link
-
- A create Bot Token Discord Developer Portal
- π¦ Download
-
Load the image into Docker:
docker load -i music-bot.tar
-
**Run the Bot with Discord Token
docker run -d --name musicbot -e DISCORD_BOT_TOKEN=your_token_here music-bot