Advertisement
CameronFitzy

Count guests

Sep 4th, 2021 (edited)
3,324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. c=b[0].split(`|`);
  2. d=a[1].replace(/(\+|\s)/g,``);
  3. e=b.filter(x=>x==u+x.slice(u.length));
  4. f=b.indexOf(e[0])+1;
  5.  
  6. if(b[0].includes(`are no`))
  7. {o=`addquote?token=${T}&data=${d}|0`}
  8. else
  9. {if(c[0]==d||a[0].match(/live|error/gi))
  10. {o=`No`}
  11. else
  12. {o=`editquote?token=${T}&data=1%20${d}|${parseInt(c[1])+1}`}};
  13.  
  14. if(e.length!=0)
  15. {g=e[0].split(` `)};
  16.  
  17. if(!a.includes(`error`)&&!b[0].toLowerCase().includes(`error`))
  18. {if(b[0].includes(`are no`))
  19. {p=`FirstUse First Use`}
  20. else
  21. {if(e.length!=0&&c[1]==parseInt(g[1])+1&&!a[0].includes(`live`))
  22. {p=`editquote?token=${T}&data=${f}%20,${u}%20${c[1]}%20${parseInt(g[2])+1} ${parseInt(g[2])+1} Plus`}
  23. else
  24. if(e.length!=0&&c[1]==parseInt(g[1])+1&&a[0].includes(`live`))
  25. {p=`editquote?token=${T}&data=${f}%20,${u}%20${c[1]}%200 0 ${g[2]}ReOne${parseInt(c[1])-parseInt(g[1])}`}
  26. else
  27. if(e.length==0)
  28. {if(!a[0].includes(`live`))
  29. {p=`addquote?token=${T}&data=,${u}%20${c[1]}%201 1 FirstS`}
  30. else
  31. {p=`addquote?token=${T}&data=,${u}%20${c[1]}%200 0 FirstF`}}
  32. else
  33. if(e.length!=0&&c[1]==parseInt(g[1]))
  34. {p=`no ${g[2]} Stay`}
  35. else
  36. if(e.length!=0&&(c[1]!=parseInt(g[1])||c[1]!=parseInt(g[1])+1)&&!a[0].includes(`live`))
  37. {p=`editquote?token=${T}&data=${f}%20,${u}%20${c[1]}%201 1 ${g[2]}ResOne${parseInt(c[1])-parseInt(g[1])}`}
  38. else
  39. if(e.length!=0&&(c[1]!=parseInt(g[1])||c[1]!=parseInt(g[1])+1)&&a[0].includes(`live`))
  40. {p=`editquote?token=${T}&data=${f}%20,${u}%20${c[1]}%200 0 ${g[2]}Reset${parseInt(c[1])-parseInt(g[1])}`}}}
  41. else
  42. {p=`No No Error`};
  43. `${o} ${p}`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement