To start off, most of this stuff is extremely new to me. So please bare that in mind. I have seen this topic around but can't seem to get it to work for me from the other topics I have seen.
I am trying to create a Nightbot command that will pull a random 'fact' from a list i have made on pastebin. I finally found a code that would for the command but am now running into the issue of [Response must be less than 400 characters] and I have tried to add json to the command like this:
$(eval var frofacts = "$(urlfetch json https://paste...
...as I have seen many other topics state to do this to override the character limit but I can't seem to get this to work. My code I have currently that worked before the limit is as follows and any help would be much appreciated. Thank you:
$(eval var frofacts = "$(urlfetch https://pastebin.com/raw/AbywSc0x) ".split(","); frofacts[Math.floor(Math.random() * (frofacts.length - 1))];)