-
Notifications
You must be signed in to change notification settings - Fork 0
/
chatbot.cbs
1 lines (1 loc) · 11 KB
/
chatbot.cbs
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="SZiYy}DBeK@!=2eAT2v|">user</variable><variable id="CDk4oAYLY^1K:gxd~QTE">Waiting</variable><variable id="%IH$8Q*_J0s.1412*F~W">Winner</variable></variables><block type="twitch_onconnected" id="PO3+dnoyUiD^BZ_9^LyG" x="-410" y="-290"><statement name="INPUT"><block type="variables_set" id=",;}G--3mHX0Iv[tgPqzu"><field name="VAR" id="CDk4oAYLY^1K:gxd~QTE">Waiting</field><value name="VALUE"><block type="logic_boolean" id="57_%@Y^olh[`VimW-BS("><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="jC?];[+t`tT,^35bA2uX"><field name="VAR" id="%IH$8Q*_J0s.1412*F~W">Winner</field><value name="VALUE"><block type="text" id="8Bx]uKf]ta0fe3$SSh(!"><field name="TEXT"/></block></value></block></next></block></statement></block><block type="procedures_defnoreturn" id="%Xu$IO@ATrV;=Cg(XwmG" x="550" y="-250"><field name="NAME">Timer</field><comment pinned="false" h="80" w="160">Describe this function...</comment><statement name="STACK"><block type="utility_wait" id="4+m(~n.}OFQTc!|i=2v|"><value name="VALUE"><shadow type="math_number" id="iM?zSj1Y)uM11CjW1cf8"><field name="NUM">30</field></shadow></value><next><block type="controls_if" id="h4/[0Ijxlg=lM6/?7I}."><value name="IF0"><block type="variables_get" id="Ww(qQbq^h!gfmrYk$5VO"><field name="VAR" id="CDk4oAYLY^1K:gxd~QTE">Waiting</field></block></value><statement name="DO0"><block type="twitch_say" id="hirRJZqn-b^bs5%RJ8Ym"><value name="VALUE"><block type="text_join" id="3(77CH-jUR=!64#Hx+)*" inline="true"><mutation items="2"/><value name="ADD0"><block type="text" id="G7v+CfkO{,.XlM?ymk$`"><field name="TEXT">30 seconds left! Still waiting to hear from @</field></block></value><value name="ADD1"><block type="variables_get" id="}BLlblQH0QN1w%v-)3@B"><field name="VAR" id="%IH$8Q*_J0s.1412*F~W">Winner</field></block></value></block></value><next><block type="utility_wait" id="^l,?d,Ea`bIv*[-knoiy"><value name="VALUE"><shadow type="math_number" id="x=FVS3-yW]Y@Ss{1f_.!"><field name="NUM">30</field></shadow></value><next><block type="controls_if" id="fT;(isd!^(,_dJZJSvJM"><value name="IF0"><block type="variables_get" id="?7v2|c(hV17FEMumAp~h"><field name="VAR" id="CDk4oAYLY^1K:gxd~QTE">Waiting</field></block></value><statement name="DO0"><block type="twitch_say" id="c8m8a(e?3yUwOKH,Uv]4"><value name="VALUE"><block type="text_join" id="F?3T[5GGz|5-!-9-S/Z+" inline="true"><mutation items="3"/><value name="ADD0"><block type="text" id="=zhVghas4qX[=JS|P(%:"><field name="TEXT">Time's up! Unfortunately we didn't hear from @</field></block></value><value name="ADD1"><block type="variables_get" id="}P#qovI$^51d%5(3Q;bW"><field name="VAR" id="%IH$8Q*_J0s.1412*F~W">Winner</field></block></value><value name="ADD2"><block type="text" id="m{#UvWO,wUaW}O/9ruj."><field name="TEXT"> in time...</field></block></value></block></value><next><block type="twitch_say" id="P?zQ{x4_pfoMS;5{X-:$"><value name="VALUE"><block type="text" id="|3Lw?/VWEOL{CCt!-Qk3"><field name="TEXT">!womp</field></block></value></block></next></block></statement></block></next></block></next></block></statement></block></next></block></statement></block><block type="twitch_onchat" id="00n+N,cRY0HY$*htpN-P" x="-410" y="-190"><statement name="INPUT"><block type="controls_if" id="g/V*sMKFIyyQxt%0KY)8"><value name="IF0"><block type="logic_compare" id="Mt$vs8:l2;8vJzmW+z9E"><field name="OP">EQ</field><value name="A"><block type="twitch_user" id="@TtYal;V|[yW_!Soz`{Y"/></value><value name="B"><block type="text" id="5)s*HFv`|YaJ9W}Tp=3["><field name="TEXT">StreamElements</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="dH8=T(_prbXD8sm0|lqN"><mutation elseif="2"/><value name="IF0"><block type="text_contains" id="[ozfGGP}-+2^r+5#D}(N"><value name="SOURCE"><block type="twitch_message" id="={P!)o;.KTRZdf~OSba_"/></value><value name="CONTAINS"><block type="text" id="P*Ga4@m|.2Ima2JwTT%n"><field name="TEXT">a giveaway has started</field></block></value></block></value><statement name="DO0"><block type="twitch_say" id="3gn)xsj97M-EDi{Vk?e*"><value name="VALUE"><block type="text" id="fx8LBT+i*|Sw_!u^T6ny"><field name="TEXT">!gstart</field></block></value></block></statement><value name="IF1"><block type="text_contains" id="5xWk/68K0=H(X!e}C$jy"><value name="SOURCE"><block type="twitch_message" id=".-xpu9z.WwDgs)m*Viw!"/></value><value name="CONTAINS"><block type="text" id="eq4E_g=4ZB~PDj7v/%GU"><field name="TEXT">no longer enter</field></block></value></block></value><statement name="DO1"><block type="twitch_say" id="QoH=v@i[!!o536TG]PTo"><value name="VALUE"><block type="text" id="u7?FOR=|DEugV3d2NP2n"><field name="TEXT">!gstop</field></block></value></block></statement><value name="IF2"><block type="text_contains" id="hlRELiS]9SALoJB$a{h/"><value name="SOURCE"><block type="twitch_message" id="8o=^b114(,CbDr!WLM9*"/></value><value name="CONTAINS"><block type="text" id="].xrqA:u,ru%+JN/4|LL"><field name="TEXT">won the giveaway</field></block></value></block></value><statement name="DO2"><block type="variables_set" id="Qc8n,M?o3Vtcm{=~*y.a"><field name="VAR" id="CDk4oAYLY^1K:gxd~QTE">Waiting</field><value name="VALUE"><block type="logic_boolean" id="3lxy(L/~`2ig^dmzf^Se"><field name="BOOL">TRUE</field></block></value><next><block type="variables_set" id="E|@RY)W,+#e=kk$2|VA["><field name="VAR" id="%IH$8Q*_J0s.1412*F~W">Winner</field><value name="VALUE"><block type="text_trim" id="j1Hu%s_`|e6A[N5@;+y9"><field name="MODE">BOTH</field><value name="TEXT"><shadow type="text" id="5+~6kYjieOxVOdRLtfNX"><field name="TEXT">abc</field></shadow><block type="text_getSubstring" id="FGt+eKGhwMWcle}if4#^"><mutation at1="true" at2="true"/><field name="WHERE1">FROM_START</field><field name="WHERE2">FROM_START</field><value name="STRING"><block type="twitch_message" id="Ms:b=,[9{q1Yj[-5BCu}"/></value><value name="AT1"><block type="math_number" id="(MGGEzMo:Irlr!VbAaGt"><field name="NUM">1</field></block></value><value name="AT2"><block type="math_arithmetic" id="5)kd:q#WzeH$EXc8wK3{"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="YD.d=SEqFh2[POz2*[O|"><field name="NUM">1</field></shadow><block type="text_indexOf" id="`??;7C.y;+6eUgK9Fx%S"><field name="END">FIRST</field><value name="VALUE"><block type="twitch_message" id="+ewv_*6W_GWi:mWw^)F~"/></value><value name="FIND"><shadow type="text" id="vT}gan`T1.,JX!kPycw^"><field name="TEXT">abc</field></shadow><block type="text" id="myJW|,!=^]EJp;ti5ORC"><field name="TEXT">won</field></block></value></block></value><value name="B"><shadow type="math_number" id="S!/qS3tAA5UU`I+Mj.nl"><field name="NUM">2</field></shadow></value></block></value></block></value></block></value><next><block type="twitch_say" id="GI:.I6-TZyV},WU(lo]|"><value name="VALUE"><block type="text_join" id="|*qWjnX59fg|m*hQ9#c2"><mutation items="2"/><value name="ADD0"><block type="text" id="a$6j(?Kd1LOfn3-ZBjVj"><field name="TEXT">!waiting </field></block></value><value name="ADD1"><block type="variables_get" id="/WD.F5/E!KXn},MuzkX("><field name="VAR" id="%IH$8Q*_J0s.1412*F~W">Winner</field></block></value></block></value><next><block type="twitch_whisper" id="cS5%yp)gyz[a,wZ:^V3="><value name="NAME"><block type="twitch_channel_username" id="FCimhj3e1Vi)%PDC(R5u"/></value><value name="VALUE"><block type="text_join" id="EcA;ba~31vl3oZ:|`l7E"><mutation items="2"/><value name="ADD0"><block type="variables_get" id="jhYEF?s!jKoXyWEf`aav"><field name="VAR" id="%IH$8Q*_J0s.1412*F~W">Winner</field></block></value><value name="ADD1"><block type="text" id="u)@b~W^^j~GiJ-?h{tmp"><field name="TEXT"> was picked for the giveaway!</field></block></value></block></value><next><block type="twitch_announce" id="AZ{y@g4~by=^jCoR}A4y"><value name="VALUE"><block type="text_join" id="lDXIL$4@tP}95q+vO:SY"><mutation items="2"/><value name="ADD0"><block type="variables_get" id="s;QG@GWf?/kR9z{nyOf4"><field name="VAR" id="%IH$8Q*_J0s.1412*F~W">Winner</field></block></value><value name="ADD1"><block type="text" id="3Hl@[nK~xgD)VF_p=7-q"><field name="TEXT"> was picked for the giveaway! Speak up in chat within the next 60 seconds to claim!</field></block></value></block></value><next><block type="procedures_callnoreturn" id="QWbVU[J;*Vvy36jRd6]U"><mutation name="Timer"/></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block></statement></block><block type="procedures_defnoreturn" id="5XbS1T/.8i_TTtd;R^9m" x="70" y="430"><mutation><arg name="user" varid="SZiYy}DBeK@!=2eAT2v|"/></mutation><field name="NAME">check winner</field><comment pinned="false" h="80" w="160">Describe this function...</comment><statement name="STACK"><block type="controls_if" id="MC=%*8fZ`!YQ)POe$+p|"><value name="IF0"><block type="variables_get" id="jb|mw.Y!xxe?a}WN:lug"><field name="VAR" id="CDk4oAYLY^1K:gxd~QTE">Waiting</field></block></value><statement name="DO0"><block type="controls_if" id="+Em9/U-m7PF;TS.Wc]Pz"><value name="IF0"><block type="logic_compare" id="pb+4O]NNl:y2L}K/kLQL"><field name="OP">EQ</field><value name="A"><block type="text_changeCase" id="b`P[v`U[Cuk(EKeZxdG]"><field name="CASE">LOWERCASE</field><value name="TEXT"><shadow type="text" id="PDidk)a4yQwEJ(z#-:NL"><field name="TEXT">abc</field></shadow><block type="variables_get" id="P!=p1QNAW||C1GEQnwiE"><field name="VAR" id="SZiYy}DBeK@!=2eAT2v|">user</field></block></value></block></value><value name="B"><block type="text_changeCase" id="P^`uZFJ18;}nsz=ckaqM"><field name="CASE">LOWERCASE</field><value name="TEXT"><shadow type="text"><field name="TEXT">abc</field></shadow><block type="variables_get" id="/6QovWTf)[`;D,;(sx=n"><field name="VAR" id="%IH$8Q*_J0s.1412*F~W">Winner</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id=",HAahY9o~tN.4d-ZfL~p"><field name="VAR" id="CDk4oAYLY^1K:gxd~QTE">Waiting</field><value name="VALUE"><block type="logic_boolean" id="jD6VOe?1dKGm|`,e;z4h"><field name="BOOL">FALSE</field></block></value><next><block type="twitch_announce" id="aZRA9m#CoF[d~AXDjW5y"><value name="VALUE"><block type="text_join" id="0O|NGkKX.pr,1XKDimHF" inline="true"><mutation items="3"/><value name="ADD0"><block type="text" id="4w,O^%XAR6?t:#ZN;8O1"><field name="TEXT">Congrats </field></block></value><value name="ADD1"><block type="variables_get" id="2ZqWWHFO}cHKVI:[N^[."><field name="VAR" id="%IH$8Q*_J0s.1412*F~W">Winner</field></block></value><value name="ADD2"><block type="text" id="]HO$;*wd!G(Ul!)-i*mc"><field name="TEXT">!</field></block></value></block></value><next><block type="twitch_say" id="kmk[/]b-@8nE,|aTd=!E"><value name="VALUE"><block type="text" id="MmUQvZJS4xGEYrpG2*]g"><field name="TEXT">!winner</field></block></value></block></next></block></next></block></statement></block></statement></block></statement></block><block type="twitch_onchat" id="oxw9W](!rj]SG)XRz]0c" x="-410" y="470"><statement name="INPUT"><block type="procedures_callnoreturn" id="12kiHB:EZ;dcKdj#O1j("><mutation name="check winner"><arg name="user"/></mutation><value name="ARG0"><block type="twitch_user" id=".,#e8I[BfDuy)dm:^(=f"/></value></block></statement></block></xml>