SPOTLIGHTDocs
APIStatusDashboard

Start

  • Overview
  • Getting started
  • Dashboard guide

Product

  • Profiles
  • Premium
  • Content creators
  • Widgets
  • Image host
  • Mobile app
  • Account & security

Creator Studio

  • Overview
  • Alerts
  • OBS widgets
  • Donate page
  • Payouts & fees

Discord bot

  • Overview
  • Commands
  • Web panel
  • Embeds & messages
  • Logging
  • Tickets & transcripts
  • Music
  • VoiceMaster
  • Applications & appeals
  • Linked Roles
  • RPG reference
  • Economy & levels
  • Moderation & safety
  • Server page & templates
  • Plans & billing

Developer API

  • Introduction
  • Game stats
  • Accounts & profiles
  • Webhooks
  • Public endpoints
  • API explorer & SDK

Help

  • Support

Discord bot

Music

Play from YouTube, SoundCloud, Spotify links and radio in voice. The bot watches its music servers and moves the music when one lags, drops songs or gets blocked by YouTube.

Playing music#

  • /music play (,p) a name or link · playnext · playskip · skip · pause / resume · stop · queue · nowplaying
  • volume · loop (track / queue) · shuffle · seek · move · remove · clear · filter (bass boost, nightcore, 8D…) · lyrics · autoplay · 247
  • radio stations, a quiz (guess the song), saved playlists, history and grab (DM yourself the song).
  • A song request channel (Panel → Music): everything typed there is queued and the player message stays on top.
  • DJ role, a music-only channel, max song length, leave-when-idle and 24/7 are in Panel → Music.

Music servers and failover#

Music runs on Lavalink servers. The bot rates each one all the time and plays on the healthiest:

What it watches

Answer timemsHow fast the server answers (checked every 2 minutes).
Audio dropped%Lavalink's own count of lost audio frames. Over 12% for two minutes in a row moves the music to a healthier server.
Failed songs30 minEach failure counts against the server.
YouTube block20 min"Sign in to confirm you're not a bot": that server isn't used for YouTube for 20 minutes.
Voice connectionIf Lavalink loses the voice connection while a song plays, the bot reconnects it, then moves servers if it keeps dropping.
Version4.2+Discord's voice encryption (DAVE) needs Lavalink 4.2.0 or newer; older ones are only a last resort.

When a song fails, the bot tries, in order: the same song on another healthy server, then the same song from SoundCloud (close to the same length), and only then skips it. While YouTube blocks a server, new searches go to SoundCloud straight away.

Bot settings (workers/.env)

LAVALINK_URL / LAVALINK_PASSWORDYour own server.
LAVALINK_NODESurl|password;…Backups of your own.
MUSIC_PUBLIC_NODESbackup · on · offFree public servers from community lists. backup (default): only while yours don't work; on: always in the mix.
MUSIC_PUBLIC_MAX0–6How many public servers stay connected on standby (3).
MUSIC_PUBLIC_LISThttps URL · offA JSON list of public servers to add to the built-in one.
MUSIC_SEARCHytsearch…Where names are searched.
MUSIC_FALLBACK_SEARCHscsearchWhere a song YouTube won't play is looked up instead.

Public servers

Free public servers are run by other people. They see what's played and the bot's ID, and they can disappear any time; the bot checks them every 15 minutes and swaps out bad ones. For a big server, run your own Lavalink and keep the public ones as backup.

Fixing "Sign in to confirm you're not a bot"#

  • Update the youtube-source plugin to the newest version.
  • Give it OAuth with a spare Google account, or a poToken, or a remote cipher server (see workers/lavalink/application.yml.example).
  • Meanwhile music keeps playing from other servers or SoundCloud.

Checking it#

,music status in Discord and Panel → Music show every server with its health (answer time, audio dropped, failed songs, YouTube block), the voice connection and what the bot did about recent problems. See also Web panel.

← PreviousTickets & transcriptsNext →VoiceMaster