OPEN SOURCE · DISCORD BOT · MIT

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.

Deskradio – internet radio for your Discord voice channel: 18 stations, station votes, song requests, English and German
DOCKER
$ 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.

18STATIONS BUILT IN, ADD YOUR OWN
~250 MBRAM WHILE STREAMING, UNDER 5 % CPU
0INBOUND PORTS, NO DOMAIN NEEDED
EN + DESLASH COMMANDS IN EACH USER'S LANGUAGE

Built for a coworking channel

01

In 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

02
01

Live 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.

02

Fair votes

More yes than no wins, and people who don't vote don't block. The team switches instantly.

03

Song requests

From YouTube and SoundCloud, with a queue, limits and vote-skip. You can turn them off completely.

04

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.

05

Crisp sound

It follows the channel bitrate — up to 384 kbit/s on boosted servers.

06

Song in the channel status

The current song shows up right under the channel name, so anyone glancing over sees what's on.

07

English and German

Slash commands follow each user's Discord language: /radio station in English, /radio sender in German.

08

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
STATIONGENRE
LofiChill
SynthwaveRetro electro
EDMElectronic
Omarchy RadioMixed
NCS (6 channels)Electronic, house, dubstep, drum & bass, trap, phonk
SomaFM Groove SaladChill, ambient beats
SomaFM Deep Space OneAmbient
SomaFM DEF CON RadioElectronic for coding
I♥ Deutschrap · Hip Hop · RadioGerman rap, hip-hop, hits
bigFM DeutschrapGerman rap
1LIVEHits & 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
  • 01
    Create a new application in the Discord Developer Portal, e.g. "Radio". Its name and icon are what people see in the member list.
  • 02
    Under Bot → Reset Token, copy the token and keep it secret. No privileged intents are needed.
  • 03
    Invite 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.
  • 04
    Turn on Developer Mode in Discord, then right-click your server and the voice channel to copy their IDs.
  • 05
    Put token and IDs into .env and start it. The log says Deskradio is ready and the panel appears in the channel chat.
DOCKER COMPOSE (RECOMMENDED)
$ 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
WITHOUT DOCKER (NODE 22+)
$ 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
COMMANDWHOWHAT IT DOES
/radio stationeveryoneThe team switches instantly, everyone else starts a vote
/radio noweveryoneStation, current song and listeners
/radio volumeeveryone / teamShows the volume; the team sets it (1–100 %)
/radio requestlisteners, teamQueues a song from YouTube or SoundCloud
/radio skipeveryoneSkips the current request: team and requester instantly, others by vote
/radio clearteamEmpties the queue
/radio off · onteamTurns 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
  • 01
    Only people in the channel who aren't deafened can vote. Starting a vote counts as a yes.
  • 02
    After 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.
  • 03
    It ends early once the result can't change anymore. Leaving the channel takes your vote with you.
  • 04
    Alone in the channel? Then the station switches right away.
  • 05
    After 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
INBOUNDNothing. No port forwarding, no domain, no reverse proxy.
OUTBOUNDTCP 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.
INSTANCESExactly one per bot token. On Kubernetes: replicas: 1 and strategy: Recreate.
DATAKeep /app/data (a Docker volume or a small PVC) so the last station survives restarts. The container runs as UID 1000.
RESOURCESAbout 250 MB of RAM and under 5 % of one CPU core while streaming, plus a short spike while yt-dlp downloads a request.
HEALTHGET /health returns 200 while the Discord gateway connection is up.

FAQ

08
Does 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.