
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.
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.
To use the play command, provide a YouTube video title or URL:
/music play Never Gonna Give You Up
/music play https://www.youtube.com/watch?v=dQw4w9WgXcQ
/music play http://stream-uk1.radioparadise.com/aac-320
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=2150714368
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: Build the debug version and execute.Rename .env.example to .env and store your Discord Bot Token in the DISCORD_TOKEN variable.
Install FFMPEG and add it to global PATH variable.
Install yt-dlp and add it to global PATH variable.
For Docker deployment, refer to docker/README.md for specific instructions.
You can configure Melodix using environment variables by creating a .env file in your project root directory. The following variables should be set in your .env file:
# Discord Bot Token (Required)
DISCORD_TOKEN=your-discord-bot-token
For any questions, get support in the Official Discord server.
Melodix is licensed under the MIT License.