Hey @qzmtch!
Why exactly use the quote system? You don’t need it for a simple slap command like the one you’re thinking about, it’s pretty much a waste of resources. There is much more simple:
!addcom !slap $(eval r=`$(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel))`; `$(query)`?`$(user) slaps ${decodeURIComponent(`$(querystring)`)}.`:`$(user) slaps ${r}.`;)
Basically r
is the random viewer, and then we test if there’s a $(query)
, if yes, we use it, if no, we use r
, the random viewer.