Music in the voice channel you are already in. Play from YouTube, Spotify, SoundCloud and Deezer while you game and talk, from a bot you host yourself.
You are in voice, mid-match, talking over the music. Queue a song with one command and it keeps playing while you play.
YouTube, Spotify, SoundCloud and Deezer. Tracks, albums, playlists and direct URLs.
Suggestions appear in the slash command box, by track, artist, album or playlist.
Pause, skip and loop from its buttons. The card updates in place.
Alfred answers when asked and never posts on its own.
Disconnects as soon as the last listener leaves the channel.
The member list shows what is playing, right under Alfred's name.
Everything Alfred posts is a card: what is playing, how far in, and what comes next.
The current track with its progress, and the tracks lined up after it.
Ask what is on and Alfred answers with the card, in the same channel.
/play joins your voice channel on its own, so there is nothing to set up first. Each command is shown the way you would type it.
See and change what is next
4Show the track that is playing now.
/now
Show the queue.
/queue
Skip the current track.
/skip
Remove a track from the queue by its number.
/remove track: 2
Find something and play it
2Play a track or playlist URL, or search YouTube for it.
/play query: daft punk get lucky
Search one source for a track, artist, album or playlist, with suggestions as you type.
/search query: get lucky
Your voice connection
1Leave the voice channel and clear the queue.
/leave
You rarely need it: Alfred leaves on its own when the last listener does.
Music in your voice channel. Nothing extra in your text channels.
Alfred handles your commands. A separate Lavalink node does the audio, so a long track never slows the bot down.
A slash command or a button on the player card.
Keeps the queue and player state. Never handles audio.
A separate Java node that finds and decodes the track.
Everyone in the call hears it.
A bundled yt-cipher container solves YouTube's signatures for Lavalink.
Docker Compose starts everything Alfred needs. Use uv if you want to work on the code.
# 1. Prepare the config files cp .env.example .env cp lavalink/application.yml.example lavalink/application.yml # 2. Set DISCORD_TOKEN and CIPHER_PASSWORD in .env # On Linux, first run only (the node runs as uid 322): mkdir -p lavalink/logs lavalink/plugins sudo chown -R 322:322 lavalink/logs lavalink/plugins # 3. Start yt-cipher, Lavalink and the bot docker compose up -d
After editing the code, rebuild with docker compose up -d --build bot. Running on a VPS? Follow the deploy guide.
# Lavalink 4 needs Java 17+ winget install --id Microsoft.OpenJDK.21 -e # Config: in .env set DISCORD_TOKEN and LAVALINK_HOST=127.0.0.1 cp .env.example .env cp lavalink/application.yml.example lavalink/application.yml # Terminal 1: the Lavalink node .\scripts\lavalink.ps1 # Terminal 2: the bot uv sync --frozen uv run alfred
Checks: uv run pytest and uv run ruff check .
clientId and clientSecret are set.
deezer: true in the same edit that fills masterDecryptionKey, or Lavalink will not start.
Deployment, how the code is put together, and the decisions behind it.