Having Trouble with Nightbot

I been wanting to create a random fact command with the command

!addcom -cd=5 !facts $(eval a=$(urlfetch json https://pastebin.com/GrPQrkAJ);a[Math.floor(Math.random()*a.length)])

but every time I enter !facts Nightbot says “Right-hand side of ‘instanceof’ is not an object” and I was wondering what I am doing wrong.

Nightbot cannot read your Pastebin file as it is private. You should make it public or unlisted.

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