Unexpected Identifier

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

Hi everyone!

I copy and pasted this code from a tut for auto responses for Nightbot and i'm getting the Unexpected Identifier message back in Twitch chat. I asked some people and they said it looks right but i'm getting these results. Can anyone double check if i'm missing a ; somewhere that I most likely missed? I'd really appreciate it.

$(user), $(eval a="$(urlfetch json https://pastebin.com/raw/umFCryTd)".split (";"); a[Math.floor(Math.random()*a.length)])

1 reply

Hiya, the pastebin in your command doesn't exist.