• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

EN How to use PlaylistTrack.play() ?


Hello I'm making a my own script for sinusbot and all music I want to use is a downloaded playlist from youtube. Now I don't know how use PlaylistTrack.play() - I think I did it proprely but this isn't working.

here's example of my code:

 function(sinusbot, config) {
    var engine = require('engine');
    var media = require('media');
var p = media.getPlaylists();
var ptracks = p[0].getTracks();
ptracks[24].play(); // for example 24 id from the playlist (I have at least 90 songs in this playlist!)
Same situation with Playlist.setActive(); - this should play whole playlist but it isn't, why? What am I doing wrong??
I think it should work but it isn't. Can you help me with it? I can't find answer anywhere.
Last edited:


Staff member
is awesome!
is uber awesome!
Any errors in the instance log?

Similar threads