Hello,
I already have a line of code for a minigame of rock, paper, scissor where you can put an username and fight him.
But im wondering how to make a specific response if someone put a specific username.
Like "$(user) tried to fight (otheruser) but no one can try him." or something like that...
the code is:
!commands edit !fight $(user) fought $(eval a=[won,drew,lost];b=[a rock,paper,scissors];r=x=>x[Math.floor(Math.random()*x.length)];${decodeURIComponent($(querystring)).replace(/@/g,)||$(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel))} and ${r(a)} with ${r(b)})`