Variables in urlfetch

Asked Nov 6, 2024·1 reply·Last activity 1 year ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

1 reply

I guess you want to create a command like "!valorant variable1 variable2 variable3" and have those variables passed to the URL. If that's the case, try this:

$(eval a=decodeURIComponent("$(querystring)").split(" "); a.length == 3 ? "$(urlfetch https://splendid-groovy-feverfew.glitch.me/valorant/" + a[0] + "/" + a[1] + "/" + a[2] + "?onlyRank=true&mmrChange=true)" : 'Enter 3 parameters')