Is it possible to do a command and replace the string with whatever the message after command is in a URL?
Example: !pstatus <user#0000> will replace a string in the URL with the <user#> part making it https://api.pstatus.dev/api/usr/<user#0000> which is fetched from after the !command trigger? I’m trying $(touser) but it sometimes returns Unexpected identifier
It’s for tracker.gg COD they don’t have an API doc around. I’ve worked out how to do it for myself i.e when I do "pstats it defaults to my Twitch name as that’s the same as my ActID.
The part in bold [username#00000] i’m trying to replace with what the user enters after the command. So if I was to do !pstats demo#99999 it’d replace the username#0000 with the demo#99999 etc and if they only enter pstats it returns a message like Incorrect format. missing user#ID or something.
However, I think this part specifically will interest you more: Warzone custom API command - #13 by EmilyPerrimon
It’s not a perfect command as I didn’t include error handling, but it’s not difficult to add.