Skip to content

BojanoN/tsmusicbot

Repository files navigation

tsmusicbot

A simple TeamSpeak3 music bot built using tsclientlib. Uses ffmpeg and youtube-dl for audio download and manipulation.

Requirements

A Linux-based OS, ffmpeg and youtube-dl.

Overview

Getting started

After building or downloading the precompiled program, create a config.json file in the current directory and fill out the desired configuration parameters. Proceed to execute the program afterwards.

Building

git clone --recurse-submodules https://github.com/BojanoN/tsmusicbot.git
cargo build --release

Supported commands

  • !yt <media_url> - queues the requested url for playback
  • !stop - stops playback of the current song
  • !volume <float value in [0, 1]> - adjusts playback volume

Configuration parameters

The configuration is stored in a json file.

  • host - host domain name
  • password - server password
  • name - bot nickname
  • id - base64 encoded id

Example configuration file

$ cat config.json
{
"host": "a.teamspeak.server.org",
"password": "",
"name": "MusicBot",
"id": "<base64 string>"
}