🎧 a self-hosted Spotify → Discord music bot
MIT License
Aoede is a Discord music bot that directly streams from Spotify to Discord. The only interface is Spotify itself.
Note: a Spotify Premium account is currently required. This is a limitation of librespot, the Spotify library Aoede uses. Facebook logins are not supported.
(Images are available for x86 and arm64.)
⚠️ Aoede only supports bot tokens. Providing a user token won't work.
Aoede will appear offline until you join a voice channel it has access it.
There are a variety of image tags available:
:0
: versions >= 0.0.0:0.5
: versions >= 0.5.0 and < 0.6.0:0.5.1
: an exact version specifier:latest
: whatever the latest version isversion: '3.4'
services:
aoede:
image: codetheweb/aoede
restart: always
volumes:
- ./aoede:/data
environment:
- DISCORD_TOKEN=
- SPOTIFY_USERNAME=
- SPOTIFY_PASSWORD=
- DISCORD_USER_ID= # Discord user ID of the user you want Aoede to follow
- SPOTIFY_BOT_AUTOPLAY= # Autoplay similar songs when your music ends (true/false)
- SPOTIFY_DEVICE_NAME=
# .env
DISCORD_TOKEN=
SPOTIFY_USERNAME=
SPOTIFY_PASSWORD=
DISCORD_USER_ID=
SPOTIFY_BOT_AUTOPLAY=
SPOTIFY_DEVICE_NAME=
docker run --rm -d --env-file .env codetheweb/aoede
Prebuilt binaries are available on the releases page. Download the binary for your platform, then inside a terminal session:
config.sample.toml
file to config.toml
and update as necessary.setx DISCORD_TOKEN my-token
export DISCORD_TOKEN=my-token
./platform-latest-aoede
after navigating to the correct directorywindows-latest-aoede.exe
after navigating to the correct directoryRequirements:
Run cargo build --release
. This will produce a binary in target/release/aoede
. Set the required environment variables (see the Docker Compose section), then run the binary.