Urlfetch Json doesn't work anymore

Asked Mar 10, 2021·2 replies·Last activity 5 years 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.

Hello !

It looks like my command

/me - $(eval a=$(urlfetch json URL_OF_MY_JSON);a[Math.floor(Math.random()*a.length)])

doesn't work today. It seems to work sometime but most of the time I get "unexpected identifier".

I looked into my server logs and I don't get any visit from nightbot when I get "unexpected identifier". I tried to host the json on pastebin and I still get the error so it probably not on my end.

Any idea ? It used to work well.

Thanks a lot !

2 replies

I think nightbots eval() is not working at the moment.

Looks like it works again !

Thank you for your answer heskeylane :)