v2.0 Online & Verified

Music that reads the room.

GoPal is a Discord music bot with a mood-aware Auto-DJ. It fingerprints every track across nine audio features, then queues the next song to keep the energy exactly where your server left it.

Try Live Demo
Free to test Bot already in the server No setup
Powered by Go DisGo Lavalink Spotify Last.fm
GoPal — Discord
♪
GoPal Test Server

Text channels

welcome general music 2 bot-logs

Voice channels

Listening Party
nova
kai
mira

GoPal

Connected

music
N
novaToday at 9:41 PM
?play daft punk - instant crush
GoPal BOT Today at 9:41 PM
▶️ Now Playing
Instant Crush — Daft Punk
1:425:37
2 tracks queued
GoPal is picking the next vibe…
Message #music
Interactive demo

Try the commands. No invite required.

Click a command to see exactly what GoPal posts in Discord. The player is simulated, but the embeds, queue math, and Auto-DJ logic mirror the real bot.

GoPal Test Server
live
music simulated
N
novaToday at 9:41 PM
?play daft punk - instant crush
GoPal BOT Today at 9:41 PM
⏳ Added Track
Track
Instant Crush — Daft Punk

Track length

5:37

Position in queue

#3

Simulated preview — join the test server to play for real.

The player is simulated. Embeds and queue logic mirror the real bot.

Modules

A music bot with an engineer's brain.

Every module is designed around one question: what should play next, and why?

auto-dj

Mood-aware Auto-DJ

A nine-dimensional fingerprint of every track feeds a per-session vibe centroid. When the queue empties, GoPal picks the next song instead of going silent.

Session vibe drift +0.12
Valence0.62
Energy0.71
Danceability0.68
Acousticness0.14
queue

Zero-repeat queue

A rolling 15-track memory excludes recent plays and scores novelty, so the same song doesn't sneak back in.

Instant Crush

Daft Punk

5:37

Midnight City

M83

4:03

Let It Happen

Tame Impala

7:47

No repeats in the last 15

isolation

Per-guild isolation

Every server gets its own queue, session state, and locks. One busy server can't stall another.

A Server Aqueue 4
B Server Bqueue 1

sync.RWMutex · per-guild map

playback

Lavalink-powered playback

Voice and streaming are delegated to a Lavalink node, keeping the Go process light and playback smooth.

38ms

p95 handshake

node healthy ytmsearch
diversity

Artist diversity

A per-artist cap stops one artist from flooding recommendations, even when similarity scores are high.

Daft Punk 3 M83 2 Tame Impala 1 + cap 3

Diversity cap applied before ranking

infra

Ship-ready infrastructure

Multi-stage Docker builds produce a tiny non-root image, deployed through GitHub Actions and a Cloudflare tunnel on every push.

Build

scratch image

Push

ghcr.io

Deploy

tunnel

non-root CI on main ghcr.io/jlry-dev/gopal
Engineering

Built like production, not a weekend script.

GoPal is a portfolio-grade system: concurrent API fusion, bounded I/O, per-guild state, and a deploy pipeline that runs on every push.

Request lifecycle

One message, end to end

production

Discord Gateway

Message + voice events

WS

DisGo event router

?play · ?skip · ?stop

Go

Lavalink

Voice + streaming

Recommender

Rank + select

Last.fm
Spotify
ReccoBeats

context timeouts · sync locks · token cache

recommender/pipeline.go Go
// per-guild session memory
sess.state.Update(seed.Features, 0.25)
pool = filterPool(pool, sess.recent.IDs(), 3)

ranked := RankTracks(pool, sess.state, sess.recent.Features(), params)
next, err := selector.Select(ranked, sess.state)
if err != nil {
    return ""
}
return fmt.Sprintf("%v - %v", next.TrackTitle, next.TrackArtist)
Latency

38ms

p95 Lavalink handshake

Uptime

99.9%

deployment target

Feature space

9D

audio features per track

Novelty

15trk

rolling memory window

Metrics are illustrative portfolio targets.

Concurrent candidate enrichment
Token cache with expiry
Timeout-bounded I/O
Per-guild session isolation
Zero-dependency runtime image
CI/CD on every push
Stack Go 1.26 DisGo DisGoLink Lavalink Spotify API Last.fm ReccoBeats Docker GitHub Actions Cloudflare
View source
1,248 members online

Your next listening session is one click away.

Join the test server, drop a track, and let Auto-DJ take over. The bot is already there — no invite, no setup.

View Source Code

Test server only · Bot already connected

Invite link copied