SHOW:
|
|
- or go back to the newest paste.
| 1 | Models.history.load(); | |
| 2 | - | var historylength=historylist.length; |
| 2 | + | |
| 3 | API.addEventListener(API.DJ_UPDATE, repeatcheck); | |
| 4 | ||
| 5 | function repeatcheck(user) {
| |
| 6 | var historylist=Models.history.data; | |
| 7 | var currentID=Models.room.data.media.cid; | |
| 8 | - | var historylength=historylist.length; |
| 8 | + | |
| 9 | for(var j=1; j<50;j++) {
| |
| 10 | ||
| 11 | - | for(var j=0; j<historylength;j++) {
|
| 11 | + | |
| 12 | API.sendChat(j); | |
| 13 | } | |
| 14 | - | API.sendChat("repeat detected");
|
| 14 | + | |
| 15 | } | |
| 16 | ||
| 17 | } |