Hello,
I was doing a google search for warzone stats command on nightbot and found one on this website. I kind of understand how to set it up but the only thing I can't seem to get is to return the username value no matter what I try.
Website for information I'm getting. stealthsan#4929051's Warzone Detailed - COD Warzone Tracker
First Command:
!wzstats $(eval $(querystring).toLowerCase().replace(%20,/))
Second Command:
_wzstats $(eval s=$(urlfetch json https://api.tracker.gg/api/v2/warzone/standard/profile/$(query)).data.segments[0].stats; r=s.kdRatio.value; k=s.kills.value; d=s.deaths.value; dw=s.downs.value; w=s.wins.value; whp=s.weeklyHeadshotPct.value; wkdr=s.weeklyKdRatio.value; Wins: ${w} | Kills: ${k} | Downs: ${dw} | Deaths: ${d} | K/D Ratio: ${r} | Weekly K/D Ratio: ${wkdr} | Weekly Headshot %: ${whp}%)
I put this in chat
!wzstats atvi StealthSan#4929051
it returns the info I put "Wins: XX | Kills: XX | Downs: XX | Deaths: XX | K/D Ratio: XX | Weekly K/D Ratio: XX | Weekly Headshot %: XX%"
but I want it to return "StealthSan#4929051: Wins: XX | Kills: XX | Downs: XX | Deaths: XX | K/D Ratio: XX | Weekly K/D Ratio: XX | Weekly Headshot %: XX%"
I have no clue what to put in order for the command to return the username I'm searching.