I'm trying to create a command that randomly decides between the viewer using the command and either a viewer they submit or a random user. My code currently looks like this:
$(eval $(query)?u=[$(user),$(touser)];:u[$(user),$(urlfetch https://2g.be/twitch/randomviewer.php?channel=kirascendant)] ;; u[Math.floor(Math.random()*u.length)]) wins!
When I use this command in chat is always returns "Unexpected identifier wins!", whether I specify a touser or not.