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

[actions] changeDJCycle

Thedark1337 edited this page Sep 20, 2016 · 1 revision

changeDJCycle(enabled[, callback])

Change the DJ cycle of the community. The bot needs to have manager permission or higher.


Parameters

enabled boolean

Enable/Disable DJ Cycle.

callback function (optional)

Callback function to be called with data from server.


Returns

true if request queued; otherwise false


Example

// Enable DJ cycle
bot.changeDJCycle(true);
// Disable DJ Cycle with callback return
bot.changeDJCycle(false, new function(){
    bot.sendChat("DJ cycle disabled");
});
Clone this wiki locally