Skip to content

Adding a song to your playlist

alaingilbert edited this page Oct 12, 2012 · 2 revisions

In order to add a song to the end of the bot's playlist, you can do the following:

// First get the list of the songs
bot.playlistAll(function(playlist) {
  // Use the length so that it gets added to the end of the list.
  bot.playlistAdd(currentsong.id, playlist.list.length); 
});
bot.snag(); // This adds the heart you see on the interface
Clone this wiki locally