Yeah, that’s not how you want to go about it, following the same logic as before, put the test and the different responses inside the paste:
$(eval r=`$(urlfetch json http://tmi.twitch.tv/group/user/$(channel)/chatters)`; u=`$(user)`; t=`$(touser)`; $(urlfetch json https://pastebin.com/raw/QNGztScQ))
if(u==t){try{c=JSON.parse(r).chatters;a=c.vips.concat(c.moderators,c.staff,c.admins,c.global_mods,c.viewers).filter(n=>![`${u}`,`Nightbot`,`aten`,`Kodiakbrujah`,`Ildelara`,`Connoted`,`Casinothanks`,`streamelements`].some(o=>n.toLowerCase()==o.toLowerCase()));a.length?`༼ つ ◕_◕ ༽つ ${a[Math.floor(Math.random()*a.length)]}`:`No chatters`}catch(e){`Couldn't fetch the list of chatters: ${e}: ${r}`.slice(0,400)}}else{`༼ つ ◕_◕ ༽つ ${t}`}
I don’t understand what the second command is supposed to do, like the logic doesn’t make sense, but it seems fairly similar to the first one, so with my corrections you should be able to figure it out.
Learn JavaScript if you want to make complex commands. Here’s a resource to start: W3Schools, and later you might be interested by MDN, but it’s a more advanced documentation.