Melodix is my pet project written in Go that plays audio from YouTube and audio streaming links to Discord voice channels. Itβs a continuation of my original buggy prototype.
play
commands.You can test out Melodix in two ways:
π₯οΈ Download compiled binaries (available only for Windows). Ensure FFMPEG is installed on your system and added to the global PATH variable. Follow the βCreate bot in Discord Developer Portalβ section to set up the bot in Discord.
ποΈ Join the Official Discord server and use the voice and #bot-spam
channels.
!play [title|url]
β Parameters: song name, YouTube URL, audio streaming URL.!skip
β Skip to the next track in the queue.!stop
β Stop playback, clear the queue, and leave the voice channel.!list
β Show the current song queue.!pause
, !resume
β Pause/resume current playback.!now
β Show the currently playing song. Convenient for radio streaming.!stats
β Show track statistics with total playback duration and count.!log
β Show recent play
commands by users.!set-prefx [new_prefix]
β Set a custom prefix for a guild to avoid collisions with other bots.melodix-reset-prefix
β Revert to the default prefix !
.!about
β Show bot information.!help
β Show a help cheatsheet.To use the play
command, provide a YouTube video title or URL:
!play Never Gonna Give You Up
!play https://www.youtube.com/watch?v=dQw4w9WgXcQ
!play http://stream-uk1.radioparadise.com/aac-320
Play multiple tracks (the second link will be added to the queue):
!play https://www.youtube.com/watch?v=dQw4w9WgXcQ https://www.youtube.com/watch?v=OorZcOzNcgE
To add Melodix to a Discord server, follow these steps:
APPLICATION_ID
(in the General section).PRESENCE INTENT
, SERVER MEMBERS INTENT
, and MESSAGE CONTENT INTENT
.discord.com/oauth2/authorize?client_id=YOUR_APPLICATION_ID&scope=bot&permissions=36727824
YOUR_APPLICATION_ID
with your Botβs Application ID from step 1.After adding the bot, build it from source or download compiled binaries. Docker deployment instructions are available in docker/README.md
.
This project is written in Go, so ensure your environment is ready. Use the provided scripts to build Melodix from source:
bash-and-run.bat
(or .sh
for Linux): Build the debug version and execute.build-release.bat
(or .sh
for Linux): Build the release version.build-dist-assemble
: Build the release version and assemble it as a distribution package (Windows only).Rename .env.example
to .env
and store your Discord Bot Token in the DISCORD_TOKEN
variable.
Install FFMPEG (only recent versions are supported).
Install yt-dlp and add it to global PATH variable.
For Docker deployment, refer to docker/README.md
for specific instructions.
For any questions, get support in the Official Discord server.
Melodix is licensed under the MIT License.