HI
I'm trying to make new Dynamic command thanks for preveus help i make it like this, but i'm having a litle proplom
i think that because i put urlfetch inside pastebin. is there any other way to do that ?
pastebin:
{"VALORANT": {"Rank": "VALORANT :Main $(eval X=JSON.parse(`$(urlfetch https://api.kyroskoh.xyz/valorant/v1/mmr/EU/LAW/00000?show=combo&display=0 ) /Smurf $(eval Z=JSON.parse(`$(urlfetch https://api.kyroskoh.xyz/valorant/v1/mmr/EU/LAW/999?show=combo&display=0 )"},"Overwatch 2": {"Rank": "Overwatch 2 : UnRanked (Placement 1 Win | 3 Lost)"}}```
Command :
$(eval p = $(urlfetch json https://pastebin.com/raw/TjXtTvCY); s = []; Object.values(p).forEach(k => s.push(k.Rank)); ${s.join(', ')}`; t = '$(twitch $(channel) "{{status}}|{{game}}")'.split('|'); t[0] === 'offline' ? f : p[t[1]] ? p[t[1]].Rank: f;)