Configuration
Environment variables, Compose service defaults, Lavalink presets, and session behavior for v0.14.1.
Environment variables
| Variable | Requirement | Local default | Notes |
|---|---|---|---|
DISCORD_TOKEN | Required · secret | No default | Bot token. Use a nonempty value with no whitespace. |
DISCORD_GUILD_ID | Optional | Unset | Nonzero numeric server ID for guild-only registration. Leave blank for global registration. |
LAVALINK_HOST | Optional | 127.0.0.1 | Nonempty hostname. Compose sets lavalink. |
LAVALINK_PORT | Optional | 2333 | Integer from 1 to 65535. Compose sets 2333. |
LAVALINK_PASSWORD | Required in Compose · secret | Local development fallback | Set a strong password. Compose passes it to the bot and to Lavalink as LAVALINK_SERVER_PASSWORD. |
LAVALINK_SECURE | Optional | false | Boolean true or false. Compose sets false for the private connection. |
RUST_LOG | Optional | info,wavemelo=debug | Tracing filter. An invalid or absent value falls back to the default. |
The local development fallback for the Lavalink password is youshallnotpass. Compose requires an explicit value. The local TLS parser also accepts yes/no and 1/0. Only the bot token and Lavalink password are secrets in this table.
Keep .env private. See the tagged runtime configuration and environment template.
Docker Compose services
| 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. |
The dependencies and all three services share the wavemelo bridge. Only Lavalink has a host port, bound to 127.0.0.1:2333. Keep yt-cipher on the bridge, where the bundled setup uses no API token.
Validate configuration with docker compose config --quiet. See the tagged Compose file.
Lavalink application.yml
Compose mounts lavalink/application.yml read-only. The node uses port 2333, JAVA_TOOL_OPTIONS=-Xmx1G, and a password provided via the Compose environment. It probes 2333 over TCP before starting the bot.
The tagged YAML pins youtube-plugin 1.18.2 and LavaSrc 4.8.3. Lavalink calls http://yt-cipher:8001/ on the bridge. The default configuration enables YouTube via its plugin plus Bandcamp, SoundCloud, Twitch, Vimeo, and HTTP. Local files and additional LavaSrc sources are disabled.
Audio filters
Set one preset with /filter. Each preset replaces the entire active Lavalink filter set. Matching is case-insensitive.
| Preset | Effect |
|---|---|
bassboost | Boosts EQ bands 0–3 by 0.25, 0.20, 0.12 and 0.05 respectively. Alias: bass. |
nightcore | Raises playback speed and pitch to 1.25×. |
vaporwave | Lowers playback speed and pitch to 0.82×, with 0.1 Hz stereo rotation. |
8d | Pans audio with 0.2 Hz stereo rotation. |
karaoke | Reduces centered vocals with a 220 Hz band and 100 Hz width. |
clear | Removes all active filters. Alias: off. |
Auto-leave and 24/7 mode
The bot starts a 180-second countdown when alone, even while playing, or when listeners are present and the player is idle with an empty queue. The countdown resets as voice and playback state change.
Use /247 in the bot’s voice channel to suppress auto-leave for the session. Toggle it again to restore automatic disconnects.
Autoplay
Autoplay runs after a natural track end with loop off and an empty queue. It tries a YouTube Mix for the previous track, then falls back to a title-and-artist search. It excludes up to 20 recent identifiers and pauses after three consecutive failures.
Manual playback changes such as /play, /skip, /stop, and /leave cancel pending resolution. Use /autoplay to toggle the mode.