Hey all, I was hoping someone could help me create a command that would fetch the statistic line from the Steamcharts website. I nearly have it with a simple fetch but because the fetch is limited It gives an error. I don’t know how to use the URL fetch with Json and could really use some help. I appreciate anything you can do to help me
Urlfetch by default grabs up to 400 characters while its json variant can grab more. If you’re handy with eval you could use urlfetch json along with some code to refine Nightbot’s output, otherwise just display the first 400 characters of the fetch like so.
$(eval decodeURIComponent(`$(querystring $(urlfetch json URL))`).slice(0,400))
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.