Hey guys! I’m trying to run a command that pulls random quotes from a document on pastebin, but when I type the command it comes up with “Invalid or Unexpected Token.” The code I used on Nightbot is:
$(eval a=$(urlfetch json https://pastebin.com/raw/kGUkD5Kt);a[Math.floor(Math.random()*a.length)])
And the pastebin is https://pastebin.com/raw/kGUkD5Kt (Don’t ask. I just wanted to be sarcastic and have a bunch of quotes about chaos come up because of my username lmao)
Does anyone have any ideas about what could be causing this? I greatly appreciate your time!