Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var historylist=Models.history.data;
- var historylength=historylist.length;
- API.addEventListener(API.DJ_UPDATE, repeatcheck);
- function repeatcheck(user) {
- var historylist=Models.history.data;
- var historylength=historylist.length;
- var currentID=Models.room.data.media.cid;
- for(var j=0; j<historylength;j++) {
- if (historylist[j].media.cid == currentID) {
- API.sendChat("repeat detected");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment