Introduction
Run your own Discord music bot with Rust, Lavalink, and Docker Compose. This guide covers wavemelo v0.14.1.
What is wavemelo?
wavemelo is an open-source music bot that takes Discord slash commands for playback, queues, and voice sessions. It runs playback through Lavalink, with native audio filters, interactive controls, and keyless lyrics from LRCLIB.
Start with the Docker quickstart, or look up a command in the slash command reference.
Architecture
Serenity receives Discord gateway events, Poise routes commands, and lavalink-rs uses forwarded voice-state events to assemble the connection details. Lavalink handles the media stream and sends audio directly to Discord voice.
- Control
- Voice audio
- Cipher
- Lyrics
Discord sends interactions and voice events to the bot. The bot controls Lavalink, which sends audio directly to Discord voice and requests signatures from yt-cipher. The bot requests lyrics from LRCLIB.
| Service | Container | Role and dependencies |
|---|---|---|
bot | wavemelo-bot | Rust bot. Starts after Lavalink passes its health check. |
lavalink | wavemelo-lavalink | Audio node. Starts after yt-cipher starts. Port 2333 is published on host loopback only. |
yt-cipher | wavemelo-yt-cipher | Pinned Git build. Listens on port 8001 inside the bridge with no published host port. |
YouTube playback without Google OAuth
The youtube-plugin uses WEB, MWEB, WEBEMBEDDED, and TVHTML5_SIMPLY for playback. MUSIC is included for metadata and search. The legacy built-in YouTube source is disabled.
Lavalink requests YouTube signature and n-parameter deciphering from the private yt-cipher service. The shipped configuration uses no Google OAuth account. Discord still requires a bot token and a server installation.
Technology stack
| Dependency | Version | Purpose |
|---|---|---|
| Rust | 1.100.0 | Pinned toolchain and bot build image |
| Serenity | 0.12.5 | Discord gateway and HTTP client |
| Poise | 0.7.1 | Slash commands and autocomplete |
| lavalink-rs | 0.15.0 | Lavalink control and voice handoff |
| Lavalink | 4.2.2 | Audio playback and filters |
| youtube-plugin | 1.18.2 | YouTube clients and remote cipher integration |
| LavaSrc | 4.8.3 | Source plugin with extra providers disabled by default |
| yt-cipher | 91d55a2 | Private signature and n-parameter service |
| LRCLIB | Public API | Keyless lyrics lookups |
Other locked direct crates include dotenvy 0.15.7, reqwest 0.12.28, serde_json 1.0.154, thiserror 2.0.21, tokio 1.54.1, tokio-tungstenite 0.21.0, tracing 0.1.44, and tracing-subscriber 0.3.23.
Cargo.lock records the full dependency tree. See docker-compose.yml and application.yml for service and plugin pins.
Requirements and limits
Self-hosting requires a Discord application, a server where you can install it, Docker with Compose v2, and outbound access for image and plugin downloads and runtime services. Docker builds Rust inside the container. Install the pinned Rust toolchain if you run the bot directly.
Queues accept up to 200 upcoming tracks per server. Extra LavaSrc providers such as Spotify and Deezer are disabled in the shipped configuration. Playback depends on source availability, and LRCLIB may lack lyrics or return a different recording.
The tagged source is MIT-licensed. Its CI run passed Rust checks, tests, release build, and Compose validation.