TeamSpeak 3 Music Bot in NodeJS with some cool features.
Watch the demo: https://streamable.com/crtqz
Features:
Music
Other
Tested with Node 14+ on Linux, Ubuntu. It may also work on Windows, but has not been tested.
You will need Node.js (at least version 14), ffmpeg, TeamSpeak3 Client, libasound2-dev (if on Linux) and desktop environment (to launch the TS3 Client).
Bot listens for commands using ServerQuery account, so you need to provide login and password. To reset the password, check: https://support.teamspeak.com/hc/en-us/articles/360002712898
git clone https://github.com/xDroni/TS3-Music-Bot.git
npm install
The main dependency (
ytdl-core
) is frequently updated. In case of any problems, trynpm update ytdl-core
first.
npm start host="server_address" login="query_login" password="query_password" botname="MusicBotName" clientname="ClientName"
#!/bin/bash
while true
do
npm start host="server_address" login="query_login" password="query_password" botname="MusicBotName" clientname="ClientName"
sleep 1
done
If you run the bot with this script, it will automatically restart in case of an unexpected error.
(optional part)
My sound settings using PulseEffects with equalizer
ALSA plug-in [node] will appear when you add the song to the queue
Once you have everything set up, you can start using commands.
!play <title or link to the song>
alias: !s and !sr
!playlist <link to the playlist>
alias: !p
Note that the regular queue has priority over the playlist.
!p m/mix/shuffle <link to the playlist>
You can also shuffle the playlist later using
!m
,!mix
or!shuffle
!list
alias: !l
!current
alias !c
!skip
!skiplast
alias !sl
!skipall
alias !sa
!size
alias !length
!previous
alias: !last
!exit
If you run the bot using the auto-restart script, the !exit command will also work as an on-demand restart.