Having Trouble with Nightbot

Asked Feb 3, 2020·1 reply·Last activity 6 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.

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.

1 reply

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