Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

[actions] grab

Talos51 edited this page Jun 2, 2015 · 3 revisions

grab([callback])

Grabs the current song.

Trying to grab the current song to the active playlist. If no playlist is currently activated the function returns false.


Parameters

callback function (optional)

Callback function to be called with data from server.


Returns

true if request queued; otherwise false


Example

//without callback
bot.grab();

//with callback
bot.grab(function() {
    bot.sendchat('Grab!');
});
Clone this wiki locally