I was curious on how to make a command in twitch that received my rank, name, and elo for Apex Legends saying I found one for Valorant.
I got a reply saying to use this
$(eval d=$(urlfetch https://api.2g.be/games/apex?q=stats%20USERNAME%20origin)
.replace(/[|]/g,``).split(|
); o=d.filter(e=>e.includes(Rank
)); u=d[0].split(:
).shift(); $(user) — ${u}: ${o[0]}
)
but when I put this in the nightbot command and put my username in it responds with this in my twitch chat “ldittoe : undefined” and when you search the url with my username it says “No player and/or platform provided”