A simple TeamSpeak3 music bot built using tsclientlib. Uses ffmpeg
and youtube-dl
for audio download and manipulation.
A Linux-based OS, ffmpeg
and youtube-dl
.
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.
git clone --recurse-submodules https://github.com/BojanoN/tsmusicbot.git
cargo build --release
!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
The configuration is stored in a json file.
host
- host domain namepassword
- server passwordname
- bot nicknameid
- base64 encoded id
$ cat config.json
{
"host": "a.teamspeak.server.org",
"password": "",
"name": "MusicBot",
"id": "<base64 string>"
}