Download
Download djsnake
A prebuilt Docker image and one Compose file. All you need is a Discord bot token.
Create the bot
In the Discord Developer Portal, create an application and add a bot. Enable the Message Content Intent, then invite it with the
botandapplications.commandsscopes and these permissions: View Channels, Send Messages, Read Message History, Add Reactions, Connect, Speak.Start it
Set your bot token in
.env, then pull the image.$ git clone https://github.com/selfhostr/djsnake.git $ cd djsnake $ cp .env.example .env # set DISCORD_TOKEN $ docker compose pull && docker compose up -d $ docker compose logs -f dj-snakePlay something
Join a voice channel and send this in a text channel.
!play https://www.youtube.com/watch?v=...
Requirements
- Docker with Compose
- A Discord bot token
- A reverse proxy or a tunnel to open the clip page from other machines: it only listens on this machine by default
- Without Docker: Python 3.10+, ffmpeg, deno and a PO token provider
Versions and images
- Latest release
v1.5.0 - Image
ghcr.io/selfhostr/djsnake:latest - Platforms
linux/amd64,linux/arm64 - Pin a version
DJ_SNAKE_TAG - Update
git pull && docker compose pull && docker compose up -d
Support the project
Every selfhostr project is free and has no company behind it. If one saves you time, a donation pays for the test hardware and for the time it takes.
Sponsor us on GitHub
Check the first and last characters after pasting. We never ask for crypto by message.