CameronFitzy

Counter Update

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