CameronFitzy

Counter Add

Sep 6th, 2020 (edited)
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. y="";
  2. if(Time.toLowerCase()=="channel is not live")
  3. {Timer=99999999}
  4. else
  5. {x=Time.split(/\s[a-z]+(\s|\x0)/g);
  6. for(i=0;i<x.length;i++)
  7. {if(parseInt(x[i])<10)
  8. {y+="0"+x[i]}
  9. else
  10. {y+=x[i]}};
  11. z=y.replace(/\s/g,"");
  12. Timer=parseInt(z)};
  13. Line=Data[Data.length-1].split(" ");
  14. CountCurrent=parseInt(Line[0]);
  15. TimeCurrent=parseInt(Line[1]);
  16. if(TimeCurrent<Timer&&Timer!=99999999)
  17. {CountTotal=CountCurrent+CountAdd}
  18. else
  19. {CountTotal=CountAdd}
Add Comment
Please, Sign In to add comment