tpoles

MultiFunction

Aug 29th, 2020 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. function StripOne(one) {Replace=one.replace("@","");Output=Replace.toLowerCase();return Output};
  2.  
  3. function StripTwo(two) {Replace=two.replace("@","");Output=Replace.toLowerCase();return Output};
  4.  
  5. function StripThree(three) {Replace=three.replace("@","");Output=Replace.toLowerCase();return Output};
  6.  
  7. function StripFour(four) {Replace=four.replace("@","");Output=Replace.toLowerCase();return Output};
  8.  
  9. function StripFive(five) {Replace=five.replace("@","");Output=Replace.toLowerCase();return Output};
  10.  
  11. function StripSix(six) {Replace=six.replace("@","");Output=Replace.toLowerCase();return Output};
  12.  
  13. function StripSeven(seven) {Replace=seven.replace("@","");Output=Replace.toLowerCase();return Output};
  14.  
  15. function StripEight(eight) {Replace=eight.replace("@","");Output=Replace.toLowerCase();return Output};
  16.  
  17.  
  18. a=StripOne(one);
  19. b=StripTwo(two);
  20. c=StripThree(three);
  21. d=StripFour(four);
  22. e=StripFive(five);
  23. f=StripSix(six);
  24. g=StripSeven(seven);
  25. h=StripEight(eight);
  26. a1="";
  27. b1="";
  28. c1="";
  29. d1="";
  30. e1="";
  31. f1="";
  32. g1="";
  33. h1="";
  34.  
  35. for(i=0;i<=Names.length&&a!=Names[i];i=Math.floor(i+2)){a1+=0};
  36. for(i=0;i<=Names.length&&b!=Names[i];i=Math.floor(i+2)){b1+=0};
  37. for(i=0;i<=Names.length&&c!=Names[i];i=Math.floor(i+2)){c1+=0};
  38. for(i=0;i<=Names.length&&d!=Names[i];i=Math.floor(i+2)){d1+=0};
  39. for(i=0;i<=Names.length&&e!=Names[i];i=Math.floor(i+2)){e1+=0};
  40. for(i=0;i<=Names.length&&f!=Names[i];i=Math.floor(i+2)){f1+=0};
  41. for(i=0;i<=Names.length&&g!=Names[i];i=Math.floor(i+2)){g1+=0};
  42. for(i=0;i<=Names.length&&h!=Names[i];i=Math.floor(i+2)){h1+=0};
  43.  
  44. if(a1.length==Math.floor(Names.length/2+1)){a2=a}else{a2=Names[Math.floor(a1.length*2+1)]};
  45.  
  46. if(b1.length==Math.floor(Names.length/2+1)){b2=b}else{b2=Names[Math.floor(b1.length*2+1)]};
  47.  
  48. if(c1.length==Math.floor(Names.length/2+1)){c2=c}else{c2=Names[Math.floor(c1.length*2+1)]};
  49.  
  50. if(d1.length==Math.floor(Names.length/2+1)){d2=d}else{d2=Names[Math.floor(d1.length*2+1)]};
  51.  
  52. if(e1.length==Math.floor(Names.length/2+1)){e2=e}else{e2=Names[Math.floor(e1.length*2+1)]};
  53.  
  54. if(f1.length==Math.floor(Names.length/2+1)){f2=f}else{f2=Names[Math.floor(f1.length*2+1)]};
  55.  
  56. if(g1.length==Math.floor(Names.length/2+1)){g2=g}else{g2=Names[Math.floor(g1.length*2+1)]};
  57.  
  58. if(h1.length==Math.floor(Names.length/2+1)){h2=h}else{h2=Names[Math.floor(h1.length*2+1)]};
  59.  
  60. if(one=="null"){FinalMessage="his hands! There's no multi at the moment, but you can see his hands occasionally on the stream!"}
  61. else
  62. if(two=="null"){FinalMessage=a2+". You can check the multi here: https://multistre.am/"+channel+"/"+a}
  63. else
  64. if(three=="null"){FinalMessage=a2+" and "+b2+". You can check the multi here: https://multistre.am/"+channel+"/"+a+"/"+b}
  65. else
  66. if(four=="null"){FinalMessage=a2+", "+b2+" and "+c2+". You can check the multi here: https://multistre.am/"+channel+"/"+a+"/"+b+"/"+c}
  67. else
  68. if(five=="null"){FinalMessage=a2+", "+b2+", "+c2+" and "+d2+". You can check the multi here: https://multistre.am/"+channel+"/"+a+"/"+b+"/"+c+"/"+d}
  69. else
  70. if(six=="null"){FinalMessage=a2+", "+b2+", "+c2+", "+d2+" and "+e2+". You can check the multi here: https://multistre.am/"+channel+"/"+a+"/"+b+"/"+c+"/"+d+"/"+e}
  71. else
  72. if(seven=="null"){FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+" and "+f2+". You can check the multi here: https://multistre.am/"+channel+"/"+a+"/"+b+"/"+c+"/"+d+"/"+e+"/"+f}
  73. else
  74. if(eight=="null"){FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+", "+f2+" and "+g2+". You can check the multi here: https://multistre.am/"+channel+"/"+a+"/"+b+"/"+c+"/"+d+"/"+e+"/"+f+"/"+g}
  75. else{FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+", "+f2+", "+g2+" and "+h2+". You can check the multi here: https://multistre.am/"+channel+"/"+a+"/"+b+"/"+c+"/"+d+"/"+e+"/"+f+"/"+g+"/"+h};
  76.  
  77. FinalMessage
Add Comment
Please, Sign In to add comment