Deskradio: radio for your Discord voice channel
Deskradio is a self-hosted Discord bot that lives in one voice channel and plays internet radio: lofi to work to, synthwave, drum & bass, hip-hop or the charts. Everyone in the channel can vote for another station, request songs and see what's playing in a live panel.
$ docker run -d --name deskradio --restart unless-stopped \
--env-file .env -e NODE_ENV=production \
-e RADIO_STATE_FILE=/app/data/state.json \
-e RADIO_CACHE_DIR=/tmp/deskradio-cache \
-v deskradio-data:/app/data \
ghcr.io/enricofranke/deskradio:latest
STATUS: STABLE (v1.x) · DOCKER IMAGES FOR AMD64 + ARM64 · NOT AFFILIATED WITH DISCORD INC.
Built for a coworking channel
01In a coworking channel people sit together for hours and want the same music in the background — without anyone having to DJ. Typical music bots are the wrong tool for that: they wait for commands, play a playlist and then go quiet.
Deskradio just runs. The bot stays in one voice channel, plays a station as soon as someone joins and stops when the channel is empty.
Anyone who wants something else starts a vote instead of an argument. Anyone who wants a specific song puts it in the queue; afterwards the station comes back.
One process, no database, no open ports. We run it around the clock in our own Discord.
What the Discord radio bot does
02Live panel in the channel
The voice channel's text chat shows the station, the current song with album cover, listeners, the queue and the last change. Pick a station from a dropdown, no command needed.
Fair votes
More yes than no wins, and people who don't vote don't block. The team switches instantly.
Song requests
From YouTube and SoundCloud, with a queue, limits and vote-skip. You can turn them off completely.
Only plays for listeners
Music only runs while someone is in the channel. The bot reconnects by itself and backs off when a stream is down.
Crisp sound
It follows the channel bitrate — up to 384 kbit/s on boosted servers.
Song in the channel status
The current song shows up right under the channel name, so anyone glancing over sees what's on.
English and German
Slash commands follow each user's Discord language: /radio station in English, /radio sender in German.
Small and frugal
One process, no database. Remembers station, volume and on/off across restarts. Docker images for amd64 and arm64 — it runs on a Raspberry Pi too.
18 stations, from lofi to 1LIVE
03| STATION | GENRE |
|---|---|
| Lofi | Chill |
| Synthwave | Retro electro |
| EDM | Electronic |
| Omarchy Radio | Mixed |
| NCS (6 channels) | Electronic, house, dubstep, drum & bass, trap, phonk |
| SomaFM Groove Salad | Chill, ambient beats |
| SomaFM Deep Space One | Ambient |
| SomaFM DEF CON Radio | Electronic for coding |
| I♥ Deutschrap · Hip Hop · Radio | German rap, hip-hop, hits |
| bigFM Deutschrap | German rap |
| 1LIVE | Hits & pop |
The list is a starting point. Add your own in STATIONS in src/settings.ts: any MP3 Icecast or Shoutcast stream works. With ICY metadata the panel shows the song title too.
Discord's dropdown holds at most 25 stations. On the very first start the bot plays lofi at 10 % volume; after that it remembers what was set last.
The streams belong to their stations. Whoever runs an instance is responsible for having the rights to play them to others.
In your voice channel in 5 minutes
04- 01Create a new application in the Discord Developer Portal, e.g. "Radio". Its name and icon are what people see in the member list.
- 02Under Bot → Reset Token, copy the token and keep it secret. No privileged intents are needed.
- 03Invite the bot: the invite link with your application ID is in the README — if you start the bot first, it prints the link in its log.
- 04Turn on Developer Mode in Discord, then right-click your server and the voice channel to copy their IDs.
- 05Put token and IDs into
.envand start it. The log saysDeskradio is readyand the panel appears in the channel chat.
$ mkdir deskradio && cd deskradio $ curl -fsSLO https://raw.githubusercontent.com/enricofranke/deskradio/main/docker-compose.yml $ curl -fsSL -o .env https://raw.githubusercontent.com/enricofranke/deskradio/main/.env.example $ nano .env # RADIO_BOT_TOKEN, RADIO_GUILD_ID, RADIO_CHANNEL_ID $ docker compose up -d $ docker compose logs -f
$ git clone https://github.com/enricofranke/deskradio.git && cd deskradio $ npm ci $ cp .env.example .env $ npm run token # writes the token into .env without printing it $ npm run build && npm start
Without Docker you also need ffmpeg with libopus and, for song requests, yt-dlp.
Commands
05| COMMAND | WHO | WHAT IT DOES |
|---|---|---|
| /radio station | everyone | The team switches instantly, everyone else starts a vote |
| /radio now | everyone | Station, current song and listeners |
| /radio volume | everyone / team | Shows the volume; the team sets it (1–100 %) |
| /radio request | listeners, team | Queues a song from YouTube or SoundCloud |
| /radio skip | everyone | Skips the current request: team and requester instantly, others by vote |
| /radio clear | team | Empties the queue |
| /radio off · on | team | Turns the radio off or on |
Team means the server owner, everyone with Administrator, and the roles in RADIO_TEAM_ROLES. German Discord clients see the German names (/radio sender, /radio jetzt …). Everything also works from the panel.
How votes work
06- 01Only people in the channel who aren't deafened can vote. Starting a vote counts as a yes.
- 02After 60 seconds the vote passes if there are more yes than no. Not voting doesn't count against it, and a tie keeps the current station.
- 03It ends early once the result can't change anymore. Leaving the channel takes your vote with you.
- 04Alone in the channel? Then the station switches right away.
- 05After a vote, or after the team switches, there's a 3-minute pause before the next one.
Song requests: yt-dlp reads title and length and downloads the audio ahead of time, so playback doesn't stutter. Each file is deleted right after it has played. While requests are queued the radio pauses, then the last station comes back.
Limits: up to 10 minutes per track, no livestreams, no playlists, 2 requests per person, 20 in total. The team has no length or per-person limit. Skip votes work the same way with 30 seconds.
All values are in src/settings.ts.
Self-hosting: what the bot needs
07| INBOUND | Nothing. No port forwarding, no domain, no reverse proxy. |
|---|---|
| OUTBOUND | TCP 443 (Discord API, streams, covers, yt-dlp). Voice also needs TCP and UDP to Discord's voice servers, audio on UDP 50000–65535. Strict firewalls and Kubernetes NetworkPolicies often block this. |
| INSTANCES | Exactly one per bot token. On Kubernetes: replicas: 1 and strategy: Recreate. |
| DATA | Keep /app/data (a Docker volume or a small PVC) so the last station survives restarts. The container runs as UID 1000. |
| RESOURCES | About 250 MB of RAM and under 5 % of one CPU core while streaming, plus a short spike while yt-dlp downloads a request. |
| HEALTH | GET /health returns 200 while the Discord gateway connection is up. |
FAQ
08Does Deskradio cost anything?
No. Deskradio is MIT licensed and you host the bot yourself. There is no subscription and no premium tier.
Does Deskradio run on a Raspberry Pi?
Yes. There are Docker images for amd64 and arm64. While streaming the bot uses about 250 MB of RAM and less than 5 % of one CPU core.
Do I need port forwarding or a domain?
No. The bot only opens outbound connections. It needs TCP 443 and, for voice, TCP and UDP to Discord's voice servers (UDP 50000 to 65535).
Can I add my own radio stations?
Yes. The station list is in src/settings.ts. Any MP3 Icecast or Shoutcast stream works; with ICY metadata the panel shows the song title too. Discord's dropdown holds at most 25 stations.
Do YouTube song requests work everywhere?
Not always. YouTube increasingly blocks yt-dlp, especially from datacenter IPs ("Sign in to confirm you're not a bot"). From a home connection it usually works; for servers there are cookie and proxy options. Set RADIO_WISHES=off to turn requests off completely — YouTube's Terms of Service don't allow downloading, so it's your call.
Can I run several instances with the same token?
No, exactly one instance per bot token. Two instances fight over the voice channel and answer every command twice. On Kubernetes use replicas: 1 and strategy: Recreate.
Contribute
Contributions are welcome — please open an issue first for bigger changes. The panel shows a small "Deskradio · by Enrico Franke" line. If you like the bot, please leave it in; it helps other people find the project.
Deskradio is not affiliated with or endorsed by Discord Inc. The radio streams belong to their stations. MIT licensed. Built with discord.js, @discordjs/voice, ffmpeg and yt-dlp; album covers come from the iTunes Search API.