Skip to content

Instantly share code, notes, and snippets.

@MorkHub
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MorkHub/f98d55000e19317e498e to your computer and use it in GitHub Desktop.
Save MorkHub/f98d55000e19317e498e to your computer and use it in GitHub Desktop.
[FIX] Plug.DJ bots getting banned for historyskipping AFK solo DJs with short playlists. !! Fork and edit users array !!
API.on(API.ADVANCE, function(json){
var users = ["Minkle of Shenanigans"];
for(var i = 0; i < users.length; i++) {
if(
(
( API.getDJ().username === users[i] ) &&
( API.getWaitList().length < 1 )
) || API.getDJ().username === undefined
) {
bot.settings.historySkip = false;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment