Advertisement
mateon1

Plug.dj History warnings

Dec 21st, 2013
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Cause P^3 is not working cause plug obfuscated require()-s yet again
  2. API.on(API.DJ_ADVANCE,function(a){
  3.     var h=API.getHistory(),
  4.         n=API.getNextMedia();
  5.     for(i=h.length;--i;){
  6.         if(h[i].media.id===a.media.id){
  7.             API.chatLog("Current song in history ["+(i+1)+"/50]",1)
  8.         }
  9.         if(h[i].media.id===n.id){
  10.             API.chatLog("Next song in history ["+(i+1)+"/50], playing in "+(1+API.getWaitListPosition()),1);
  11.         }
  12.     }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement