There are different ways to make a slap command, but I would like to make commands in the quote system using templates with the choice of querystring or random user
how it should look
templates quote system
%user slap %randUser
%randUser dodged slap %user
etc
tried through eval to receive both responses from fetch requests
with querystring
$(eval a=`$(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel))`;b=`$(urlfetch http://twitch.center/customapi/quote?token=0ff178fe&no_id=1)`;q=decodeURIComponent("$(querystring)");q?`.me ${b.replace('%randUser',q).replace('%user',$(user))}`:`.me ${b.replace('%randUser',a).replace('%user',$(user))}`)
without querystring
$(eval a=`$(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel))`;b=`$(urlfetch http://twitch.center/customapi/quote?token=0ff178fe&no_id=1)`;c=b.replace('%randUser',a);c=c.replace('%user',$(user));c;)
etc
but constantly getting
$(user) is not defined // in this case QZMTCH is not defined
the question is, can two fetch requests be used in one eval?
is it possible to somehow make it so that it is possible to use random messages perhaps even sometimes without a user where instead of a user there would be a nightbot?
help solve this problem





