Warzone Api Nightbot command

Hello there,

I’ve found a topic regarding Warzone command’s to check own stats which looks like this:

$(eval s=$(urlfetch json https://api.tracker.gg/api/v2/warzone/standard/profile/battlenet/elegipcio%2311740/).data.segments[1].stats; r=s.kdRatio.value; k=s.kills.value; d=s.deaths.value; w=s.wins.value; Wins: ${w} | Kills: ${k} | Deaths: ${d} | Kills/Deaths Ratio: ${r})

Now, my question is. . .

How do i make a command to check other peoples stats in chat.

Example, i’d like to add a command that everytime i input !check USERNAME#010239 it gives me back their stats.

Thanks alot !

I’m fairly certain this will work:

$(eval s=$(urlfetch json https://api.tracker.gg/api/v2/warzone/standard/profile/battlenet/$(querystring)/).data.segments[1].stats; r=s.kdRatio.value; k=s.kills.value; d=s.deaths.value; w=s.wins.value;`Wins: ${w} | Kills: ${k} | Deaths: ${d} | Kills/Deaths Ratio: ${r}`)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.