tpoles

MultiFunction3.0-(Twitch & Facebook)

Sep 5th, 2020 (edited)
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.29 KB | None | 0 0
  1. on=query[0];tw=query[2];th=query[4];fo=query[6];fi=query[8];si=query[10];se=query[12];ei=query[14];ni=query[16];te=query[18];el=query[20];twe=query[22];Te=query[100];
  2.  
  3. if(on!=Te)
  4. {function StOn(on) {Replace=on.replace("@","");Output=Replace.toLowerCase();return Output}}
  5. else
  6. {function StOn(on) {Output="";return Output}};
  7.  
  8. if(tw!=Te)
  9. {function StTw(tw) {Replace=tw.replace("@","");Output=Replace.toLowerCase();return Output}}
  10. else
  11. {function StTw(tw) {Output="";return Output}};
  12.  
  13. if(th!=Te)
  14. {function StTh(th) {Replace=th.replace("@","");Output=Replace.toLowerCase();return Output}}
  15. else
  16. {function StTh(th) {Output="";return Output}};
  17.  
  18. if(fo!=Te)
  19. {function StFo(fo) {Replace=fo.replace("@","");Output=Replace.toLowerCase();return Output}}
  20. else
  21. {function StFo(fo) {Output="";return Output}};
  22.  
  23. if(fi!=Te)
  24. {function StFi(fi) {Replace=fi.replace("@","");Output=Replace.toLowerCase();return Output}}
  25. else
  26. {function StFi(fi) {Output="";return Output}};
  27.  
  28. if(si!=Te)
  29. {function StSi(si) {Replace=si.replace("@","");Output=Replace.toLowerCase();return Output}}
  30. else
  31. {function StSi(si) {Output="";return Output}};
  32.  
  33. if(se!=Te)
  34. {function StSe(se) {Replace=se.replace("@","");Output=Replace.toLowerCase();return Output}}
  35. else
  36. {function StSe(se) {Output="";return Output}};
  37.  
  38. if(ei!=Te)
  39. {function StEi(ei) {Replace=ei.replace("@","");Output=Replace.toLowerCase();return Output}}
  40. else
  41. {function StEi(ei) {Output="";return Output}};
  42.  
  43. if(ni!=Te)
  44. {function StNi(ni) {Replace=ni.replace("@","");Output=Replace.toLowerCase();return Output}}
  45. else
  46. {function StNi(ni) {Output="";return Output}};
  47.  
  48. if(te!=Te)
  49. {function StTe(te) {Replace=te.replace("@","");Output=Replace.toLowerCase();return Output}}
  50. else
  51. {function StTe(te) {Output="";return Output}};
  52.  
  53. if(el!=Te)
  54. {function StEl(el) {Replace=el.replace("@","");Output=Replace.toLowerCase();return Output}}
  55. else
  56. {function StEl(el) {Output="";return Output}};
  57.  
  58. if(twe!=Te)
  59. {function StTwe(twe) {Replace=twe.replace("@","");Output=Replace.toLowerCase();return Output}}
  60. else
  61. {function StTwe(twe) {Output="";return Output}};
  62.  
  63. YN1=query[1];
  64. YN2=query[3];
  65. YN3=query[5];
  66. YN4=query[7];
  67. YN5=query[9];
  68. YN6=query[11];
  69. YN7=query[13];
  70. YN8=query[15];
  71. YN9=query[17];
  72. YN10=query[19];
  73. YN11=query[21];
  74. YN12=query[23];
  75.  
  76. a=StOn(on);
  77. b=StTw(tw);
  78. c=StTh(th);
  79. d=StFo(fo);
  80. e=StFi(fi);
  81. f=StSi(si);
  82. g=StSe(se);
  83. h=StEi(ei);
  84. j=StNi(ni);
  85. k=StTe(te);
  86. l=StEl(el);
  87. m=StTwe(twe);
  88.  
  89. a1="";b1="";c1="";d1="";e1="";f1="";g1="";h1="";j1="";k1="";l1="";m1="";
  90.  
  91. for(i=0;i<=Names.length&&a!=Names[i];i=Math.floor(i+2)){a1+=0};
  92. for(i=0;i<=Names.length&&b!=Names[i];i=Math.floor(i+2)){b1+=0};
  93. for(i=0;i<=Names.length&&c!=Names[i];i=Math.floor(i+2)){c1+=0};
  94. for(i=0;i<=Names.length&&d!=Names[i];i=Math.floor(i+2)){d1+=0};
  95. for(i=0;i<=Names.length&&e!=Names[i];i=Math.floor(i+2)){e1+=0};
  96. for(i=0;i<=Names.length&&f!=Names[i];i=Math.floor(i+2)){f1+=0};
  97. for(i=0;i<=Names.length&&g!=Names[i];i=Math.floor(i+2)){g1+=0};
  98. for(i=0;i<=Names.length&&h!=Names[i];i=Math.floor(i+2)){h1+=0};
  99. for(i=0;i<=Names.length&&j!=Names[i];i=Math.floor(i+2)){j1+=0};
  100. for(i=0;i<=Names.length&&k!=Names[i];i=Math.floor(i+2)){k1+=0};
  101. for(i=0;i<=Names.length&&l!=Names[i];i=Math.floor(i+2)){l1+=0};
  102. for(i=0;i<=Names.length&&m!=Names[i];i=Math.floor(i+2)){m1+=0};
  103.  
  104. if(a1.length==Math.floor(Names.length/2+1)){a2=a}else{a2=Names[Math.floor(a1.length*2+1)]};
  105. if(b1.length==Math.floor(Names.length/2+1)){b2=b}else{b2=Names[Math.floor(b1.length*2+1)]};
  106. if(c1.length==Math.floor(Names.length/2+1)){c2=c}else{c2=Names[Math.floor(c1.length*2+1)]};
  107. if(d1.length==Math.floor(Names.length/2+1)){d2=d}else{d2=Names[Math.floor(d1.length*2+1)]};
  108. if(e1.length==Math.floor(Names.length/2+1)){e2=e}else{e2=Names[Math.floor(e1.length*2+1)]};
  109. if(f1.length==Math.floor(Names.length/2+1)){f2=f}else{f2=Names[Math.floor(f1.length*2+1)]};
  110. if(g1.length==Math.floor(Names.length/2+1)){g2=g}else{g2=Names[Math.floor(g1.length*2+1)]};
  111. if(h1.length==Math.floor(Names.length/2+1)){h2=h}else{h2=Names[Math.floor(h1.length*2+1)]};
  112. if(j1.length==Math.floor(Names.length/2+1)){j2=j}else{j2=Names[Math.floor(j1.length*2+1)]};
  113. if(k1.length==Math.floor(Names.length/2+1)){k2=k}else{k2=Names[Math.floor(k1.length*2+1)]};
  114. if(l1.length==Math.floor(Names.length/2+1)){l2=l}else{l2=Names[Math.floor(l1.length*2+1)]};
  115. if(m1.length==Math.floor(Names.length/2+1)){m2=m}else{m2=Names[Math.floor(m1.length*2+1)]};
  116.  
  117. Str="";
  118. Str2="";
  119. ctStr=0;
  120. if(YN1=="t"||YN1=="T"){ctStr+=1};
  121. if(YN1=="f"||YN1=="F"){ctStr+=1};
  122.  
  123. if(YN2=="t"||YN2=="T"){ctStr+=1};
  124. if(YN2=="f"||YN2=="F"){ctStr+=1};
  125.  
  126. if(YN3=="t"||YN3=="T"){ctStr+=1};
  127. if(YN3=="f"||YN3=="F"){ctStr+=1};
  128.  
  129. if(YN4=="t"||YN4=="T"){ctStr+=1};
  130. if(YN4=="f"||YN4=="F"){ctStr+=1};
  131.  
  132. if(YN5=="t"||YN5=="T"){ctStr+=1};
  133. if(YN5=="f"||YN5=="F"){ctStr+=1};
  134.  
  135. if(YN6=="t"||YN6=="T"){ctStr+=1};
  136. if(YN6=="f"||YN6=="F"){ctStr+=1};
  137.  
  138. if(YN7=="t"||YN7=="T"){ctStr+=1};
  139. if(YN7=="f"||YN7=="F"){ctStr+=1};
  140.  
  141. if(YN8=="t"||YN8=="T"){ctStr+=1};
  142. if(YN8=="f"||YN8=="F"){ctStr+=1};
  143.  
  144. if(YN9=="t"||YN9=="T"){ctStr+=1};
  145. if(YN9=="f"||YN9=="F"){ctStr+=1};
  146.  
  147. if(YN10=="t"||YN10=="T"){ctStr+=1};
  148. if(YN10=="f"||YN10=="F"){ctStr+=1};
  149.  
  150. if(YN11=="t"||YN11=="T"){ctStr+=1};
  151. if(YN11=="f"||YN11=="F"){ctStr+=1};
  152.  
  153. if(YN12=="t"||YN12=="T"){ctStr+=1};
  154. if(YN12=="f"||YN12=="F"){ctStr+=1};
  155.  
  156. ct1=ctStr/2;
  157. ct2=0;
  158.  
  159. MaxMulti=6;
  160.  
  161. if(YN1=="t"||YN1=="T"){Str+="/t"+a;ct2+=1;};
  162. if(YN1=="f"||YN1=="F"){Str+="/f"+a;ct2+=1;};
  163.  
  164. if(YN2=="t"||YN2=="T"){if(ctStr<MaxMulti){Str+="/t"+b}else{if(ct2<ct1){Str+="/t"+b;ct2+=1;}else{Str2+="/t"+b}}};
  165. if(YN2=="f"||YN2=="F"){if(ctStr<MaxMulti){Str+="/f"+b}else{if(ct2<ct1){Str+="/f"+b;ct2+=1;}else{Str2+="/f"+b}}};
  166.  
  167. if(YN3=="t"||YN3=="T"){if(ctStr<MaxMulti){Str+="/t"+c}else{if(ct2<ct1){Str+="/t"+c;ct2+=1;}else{Str2+="/t"+c}}};
  168. if(YN3=="f"||YN3=="F"){if(ctStr<MaxMulti){Str+="/f"+c}else{if(ct2<ct1){Str+="/f"+c;ct2+=1;}else{Str2+="/f"+c}}};
  169.  
  170. if(YN4=="t"||YN4=="T"){if(ctStr<MaxMulti){Str+="/t"+d}else{if(ct2<ct1){Str+="/t"+d;ct2+=1;}else{Str2+="/t"+d}}};
  171. if(YN4=="f"||YN4=="F"){if(ctStr<MaxMulti){Str+="/f"+d}else{if(ct2<ct1){Str+="/f"+d;ct2+=1;}else{Str2+="/f"+d}}};
  172.  
  173. if(YN5=="t"||YN5=="T"){if(ctStr<MaxMulti){Str+="/t"+e}else{if(ct2<ct1){Str+="/t"+e;ct2+=1;}else{Str2+="/t"+e}}};
  174. if(YN5=="f"||YN5=="F"){if(ctStr<MaxMulti){Str+="/f"+e}else{if(ct2<ct1){Str+="/f"+e;ct2+=1;}else{Str2+="/f"+e}}};
  175.  
  176. if(YN6=="t"||YN6=="T"){if(ctStr<MaxMulti){Str+="/t"+f}else{if(ct2<ct1){Str+="/t"+f;ct2+=1;}else{Str2+="/t"+f}}};
  177. if(YN6=="f"||YN6=="F"){if(ctStr<MaxMulti){Str+="/f"+f}else{if(ct2<ct1){Str+="/f"+f;ct2+=1;}else{Str2+="/f"+f}}};
  178.  
  179. if(YN7=="t"||YN7=="T"){if(ctStr<MaxMulti){Str+="/t"+g}else{if(ct2<ct1){Str+="/t"+g;ct2+=1;}else{Str2+="/t"+g}}};
  180. if(YN7=="f"||YN7=="F"){if(ctStr<MaxMulti){Str+="/f"+g}else{if(ct2<ct1){Str+="/f"+g;ct2+=1;}else{Str2+="/f"+g}}};
  181.  
  182. if(YN8=="t"||YN8=="T"){if(ctStr<MaxMulti){Str+="/t"+h}else{if(ct2<ct1){Str+="/t"+h;ct2+=1;}else{Str2+="/t"+h}}};
  183. if(YN8=="f"||YN8=="F"){if(ctStr<MaxMulti){Str+="/f"+h}else{if(ct2<ct1){Str+="/f"+h;ct2+=1;}else{Str2+="/f"+h}}};
  184.  
  185. if(YN9=="t"||YN9=="T"){if(ctStr<MaxMulti){Str+="/t"+j}else{if(ct2<ct1){Str+="/t"+j;ct2+=1;}else{Str2+="/t"+j}}};
  186. if(YN9=="f"||YN9=="F"){if(ctStr<MaxMulti){Str+="/f"+j}else{if(ct2<ct1){Str+="/f"+j;ct2+=1;}else{Str2+="/f"+j}}};
  187.  
  188. if(YN10=="t"||YN10=="T"){if(ctStr<MaxMulti){Str+="/t"+k}else{if(ct2<ct1){Str+="/t"+k;ct2+=1;}else{Str2+="/t"+k}}};
  189. if(YN10=="f"||YN10=="F"){if(ctStr<MaxMulti){Str+="/f"+k}else{if(ct2<ct1){Str+="/f"+k;ct2+=1;}else{Str2+="/f"+k}}};
  190.  
  191. if(YN11=="t"||YN11=="T"){if(ctStr<MaxMulti){Str+="/t"+l}else{if(ct2<ct1){Str+="/t"+l;ct2+=1;}else{Str2+="/t"+l}}};
  192. if(YN11=="f"||YN11=="F"){if(ctStr<MaxMulti){Str+="/f"+l}else{if(ct2<ct1){Str+="/f"+l;ct2+=1;}else{Str2+="/f"+l}}};
  193.  
  194. if(YN12=="t"||YN12=="T"){if(ctStr<MaxMulti){Str+="/t"+m}else{if(ct2<ct1){Str+="/t"+m}else{Str2+="/t"+m}}};
  195. if(YN12=="f"||YN12=="F"){if(ctStr<MaxMulti){Str+="/f"+m}else{if(ct2<ct1){Str+="/f"+m}else{Str2+="/f"+m}}};
  196.  
  197. if(Str==""){Multilink=". There's no multi at the moment!"}
  198. else{if(Str2==""){Multilink=". You can check the multi here: https://multi.raredrop.co/t"+channel+Str}else{Multilink=". You can check the multis here: https://multi.raredrop.co/t"+channel+Str+" and https://multi.raredrop.co/t"+channel+Str2}};
  199.  
  200. FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+", "+f2+", "+g2+", "+h2+", "+j2+", "+k2+", "+l2+" and "+m2+Multilink;
  201. if(m=="")
  202. FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+", "+f2+", "+g2+", "+h2+", "+j2+", "+k2+" and "+l2+Multilink;
  203. if(l=="")
  204. FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+", "+f2+", "+g2+", "+h2+", "+j2+" and "+k2+Multilink;
  205. if(k=="")
  206. FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+", "+f2+", "+g2+", "+h2+" and "+j2+Multilink;
  207. if(j=="")
  208. FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+", "+f2+", "+g2+" and "+h2+Multilink;
  209. if(h=="")
  210. FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+", "+f2+" and "+g2+Multilink;
  211. if(g=="")
  212. {FinalMessage=a2+", "+b2+", "+c2+", "+d2+", "+e2+" and "+f2+Multilink};
  213. if(f=="")
  214. {FinalMessage=a2+", "+b2+", "+c2+", "+d2+" and "+e2+Multilink};
  215. if(e=="")
  216. {FinalMessage=a2+", "+b2+", "+c2+" and "+d2+Multilink};
  217. if(d=="")
  218. {FinalMessage=a2+", "+b2+" and "+c2+Multilink};
  219. if(c=="")
  220. {FinalMessage=a2+" and "+b2+Multilink};
  221. if(b=="")
  222. {FinalMessage=a2+Multilink};
  223. if(a=="")
  224. {FinalMessage="his hands! There's no multi at the moment, but you can see his hands occasionally on the stream!"};
  225.  
  226. FinalMessage
Add Comment
Please, Sign In to add comment