On this page
Getting startedv0.14.1

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.

Routing schematic / v0.14.1
  • 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.

Compose services
ServiceContainerRole and dependencies
botwavemelo-botRust bot. Starts after Lavalink passes its health check.
lavalinkwavemelo-lavalinkAudio node. Starts after yt-cipher starts. Port 2333 is published on host loopback only.
yt-cipherwavemelo-yt-cipherPinned 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

Pinned technology stack
DependencyVersionPurpose
Rust1.100.0Pinned toolchain and bot build image
Serenity0.12.5Discord gateway and HTTP client
Poise0.7.1Slash commands and autocomplete
lavalink-rs0.15.0Lavalink control and voice handoff
Lavalink4.2.2Audio playback and filters
youtube-plugin1.18.2YouTube clients and remote cipher integration
LavaSrc4.8.3Source plugin with extra providers disabled by default
yt-cipher91d55a2Private signature and n-parameter service
LRCLIBPublic APIKeyless 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.