Random Facts not working in Nightbot :(

Asked Aug 29, 2025·1 reply·Last activity 11 months 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.

Hi! I am using this:
$(eval a=$(urlfetch json https://pastebin.com/raw/D6Juyqfd);a[Math.floor(Math.random()*a.length)])
and each time I try to use it in my stream, I get " "Cattle is the correct way to refer to a group of mixed gender and age livestock." is not a function" And nothing else.

how do I get it to randomly select from the list?

1 reply

Your JSON payload is not valid. Use a JSON validator like this before uploading it to Pastebin.