Invalid or Unexpected Token

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;a​[Math.floor(Math.random()*a.length)])

And the pastebin is (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!

Instead of “|” in your pastebin it should be “,”

1 Like

Thanks for the response :smiley: I originally had them as commas and it came up as “unexpected identifier” when I tried it in chat, and someone suggested I switch to using "|"s

1 Like

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