Music bot for our Teamspeak

Teamspeak and FTP related topics.
Post Reply
User avatar
{TNT}Caliban55
Scout
Posts: 83
Joined: Thu May 31, 2018 3:04 pm
Location: Germany

Music bot for our Teamspeak

Post by {TNT}Caliban55 » Tue Jan 29, 2019 12:32 pm

I have set up a music bot ({TNT}Barista[Bot], residing in the Coffee House channel) for our Teamspeak server, with the main purpose of automatically moving idle connections into the Away channel (at the moment the setting is 4 hours). The original and intended use of the bot is playing music though, which you can still use, if you want to.

To use the extended functions, you will have to register your Teamspeak account with the bot database, which you can do by sending it the !register <nickname> command, either in the bot channel chat, or in a chat message window you open to the bot - you can skip the password setting, it is not really required, the account will be bound to your Teamspeak ID. You can than use the extended commands, once the account is activated (I will check from time to time for new accounts, or just leave a message here in this thread that you want your account unlocked).

You can either upload YouTube music/videos, or play YouTube streams with the following commands:

Code: Select all

!stream <url> stream from <url>; this may be http-streams like shoutcast / icecast or just remote soundfiles

Code: Select all

!yt <url> playback an <url> via external youtube-dl (if enabled); beware: the file will be downloaded first and played back afterwards, so there might be a slight delay before playback starts

Code: Select all

!ytdl <url> playback an <url> via external youtube-dl (if enabled); beware: the file will be downloaded first and played back afterwards, so there might be a slight delay before playback starts; additionally, the file will be stored

Code: Select all

!qytdl <url> add an <url> via external youtube-dl (if enabled) to the queue; beware: the file will be downloaded first and enqueued afterwards, so there might be a slight delay before playback starts; additionally, the file will be stored
This here is the full list of commands available. Some require additional permissions, which are not avaiable by default (like uploading your own music, which will probably not be available here).
Anonymous usage
!register <nickname>Registers a new user bound to the TeamSpeak-Account you are using. This account has no privileges by default but can be edited by the bot administrators.
!playingDisplay the currently playing song

Authorized users
The icons represent the required permissions.
!password <value>change your password to <value>
!next playback the next track (only when a playlist is active)
!prev playback the previous track (only when a playlist is active)
!search <searchstring> or search for tracks
!play <searchstring / uuid> playback a track by its id or search for a track and playback the first match
!queue or resume queue playback
!queue <searchstring / uuid> or enqueue a track by its id or search for a track and enqueue the first match
!queuenext <searchstring / uuid> prepend a track by its id or search for a track and prepend the first match to the queue
!stop stop playback
!!stop stop playback and remove idle-track
!volume up increase the volume
!volume down decrease the volume
!volume <value> set the volume to <value> (between 0 and 100)
!playlist <playlistname> starts playing back the playlist <playlistname>
!stream <url> stream from <url>; this may be http-streams like shoutcast / icecast or just remote soundfiles
!say <text> use text-to-speech (if configured) to say the given text
!qyt <url> or enqueue an <url> via external youtube-dl (if enabled); beware: the file will be downloaded first and played back afterwards, so there might be a slight delay before playback starts
!yt <url> playback an <url> via external youtube-dl (if enabled); beware: the file will be downloaded first and played back afterwards, so there might be a slight delay before playback starts
!ytdl <url> playback an <url> via external youtube-dl (if enabled); beware: the file will be downloaded first and played back afterwards, so there might be a slight delay before playback starts; additionally, the file will be stored
!qytdl <url> add an <url> via external youtube-dl (if enabled) to the queue; beware: the file will be downloaded first and enqueued afterwards, so there might be a slight delay before playback starts; additionally, the file will be stored
!shuffle toggle shuffle
!repeat toggle repeat

Post Reply