Media bots¶
TS6 Manager can run multiple TeamSpeak media bots per server. Each bot has independent playback, queue, and volume state.
The Bots view shows live connection/playback status, current media, progress, volume, queue context, and normal playback controls without exposing provider credentials. Create a bot with a single Name (used as both the admin label and the TeamSpeak nickname). The UI route is /media-bots (/music-bots redirects there).
Bot Hub¶
Automation → Bot Hub shows what every bot is doing right now: the track or stream, its channel, video quality and encoder, viewer count, uptime, the no-viewer auto-stop countdown, and the last stop reason. It links to Bot Flows, Media Bots, video streaming and IPTV. The page polls in-memory bot state only; it never probes the media sidecar or TeamSpeak Query.
A bot plays music or video, never both, and only one video stream runs at a time. See Video streaming — one media session at a time.
Requests¶
Media Bots → Requests (/media-bots?tab=requests) shows !play history for the selected server. Play starts that request immediately. Enqueue adds it to the queue without interrupting current playback. When several bots are running, pick the target bot. /music-requests redirects here. System → Music Request History is no longer a separate page.
Sources¶
Music bots support:
- radio streams with ICY metadata;
- YouTube playback through yt-dlp;
- Spotify and Apple Music media resolution through the supported resolver path;
- local files and downloaded media; and
- saved playlists.
Local/downloaded tracks are decoded incrementally at media speed to keep memory use bounded on long tracks.
Playback controls¶
The web UI supports queue management, pause/resume, skip, previous, shuffle, repeat, seek, and volume. Running bots use a Play split-button (Playlist / Song / Video / Radio / IPTV) that remembers the last-used action.
Bots can reconnect automatically with exponential backoff and overlap protection.
Channel text commands¶
When a bot is connected to a configured command channel, users in that channel can use built-in commands.
!help— Show built-in and custom commands!here [id]/!come [id]— Summon an idle music bot to your channel (or target a bot by ID)!commands— List enabled custom chat commands only!play <url>— Play supported media!play— Resume paused playback!queue [show|clear|remove <n>|play <n>|<url>]— Show or manage the queue!add <url>— Alias for adding to the queue!playlist [name-or-id]/!pl <name-or-id>— List or append a saved playlist!repeat [off|track|queue]— Show or set repeat mode!seek <seconds|+seconds|-seconds>— Seek within local/downloaded media!remove <text>— Remove one unambiguous upcoming match!shuffle [on|off]— Toggle or set shuffle!stop— Stop playback!pause— Toggle pause/resume!skip/!next— Advance the queue!prev— Previous track!vol [0-100]/!volume [0-100]— Show or set volume!np/!nowplaying— Show the current track!radio [id]— List or play radio stations!stream <url> [preset]— Start a video stream. Without a preset, a YouTube or Twitch link starts at Auto quality (up to the Auto quality limit) and any other URL at the bot's stored preset (720p by default), because Auto opens the source once more to measure it;auto,480p,720p,1080p,1440por2160psets it!stopstream— Stop the active video stream!viewers— List stream viewers!channels [search]— List/search IPTV channels!tv <name>/!iptv <name>— Stream an IPTV channel!lyrics [artist - title]— Show/search lyrics
Custom chat commands can also be configured.
Custom command presets¶
Music Bots → Commands can seed recommended server-scoped canned replies shared by every music bot on that connection:
| Command | Purpose |
|---|---|
!rules |
Server rules text |
!links |
Useful links (website, Discord, donate, …) |
!discord |
Discord invite (optional; can fold into !links) |
!info / !about |
Short community blurb |
Seeded presets start disabled. Edit the placeholder Markdown, then enable. !commands is a built-in that lists enabled customs (also shown under Custom in !help). Multiple bots on the same channel only send one informational reply (!help / !commands / customs) per user within a short cooldown.
Download progress¶
Explicit library downloads run as bounded background jobs and can expose:
- current and total item counts;
- yt-dlp percentage;
- speed;
- ETA;
- processing state; and
- failure status.
Progress endpoints require an authenticated administrator, the matching server, and the requesting user. Jobs are kept in memory, capped, and expire automatically. A backend restart clears progress history.
yt-dlp lifecycle¶
Production containers do not self-update yt-dlp.
The tool is installed at image build time and validated alongside FFmpeg, Node, and Deno. Deno (pinned in .deno-version) is the only yt-dlp JavaScript runtime configured for YouTube challenge solving (--js-runtimes deno). Image Node remains 20 for the Nest backend and is not an EJS fallback. To update the bundled extractor or Deno, pull a newer TS6 Manager image and recreate the container, or rebuild from a fresh image build.
Administrators can confirm the currently bundled yt-dlp (and related media tools) with the demand-driven Runtime / media check on Settings → YouTube or Music Bots → Library. That check is not part of live bot status polling.
A public-video smoke test is intentionally not a release gate because media availability, rate limits, and regional restrictions are external to the project.

