I´m trying to make a random facts command and I have the basics down but..

I keep getting the ´´Right-hand side of ‘instanceof’ is not an object´´ I made a paste bin file and I the command I have is $(eval a=$(urlfetch json https://pastebin.com/GkjTYSjX);a[Math.floor(Math.random()*a.length)]) https://pastebin.com/GkjTYSjX

Hey @fl0wyy!

You have to use the raw version of the paste:

$(eval a=$(urlfetch json https://pastebin.com/raw/GkjTYSjX);a[Math.floor(Math.random()*a.length)])

[quote=“EmilyPerrimon, post:2, topic:26230”]

Thank you soo much I have been trying so long to get this right.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.