Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Models.history.load();
- var skippedsongs = new Array();
- API.addEventListener(API.DJ_UPDATE, repeatcheck);
- function repeatcheck(user) {
- var historylist=Models.history.data;
- var currentID=Models.room.data.media.cid;
- for(var j=1; j<50;j++) {
- if (historylist[j].media.cid == currentID) {
- if ($.inArray(currentID, skippedsongs) == -1) {
- API.moderateForceSkip();
- API.sendChat("Sorry, that song's still in history (song " + j + " out of 50)");
- skippedsongs.push(currentID);
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment