Last active
August 29, 2015 14:25
-
-
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 !!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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