i am having issues trying to make randomized responses work. this literally the first time ive tried to do anything like this, so im mute to some of the language used. I have this in the messages section for nightbot:
$(eval a=$(urlfetch json https://pastebin.com/raw/h0sH4607);a[Math.floor(Math.random()*a.length)])
the pastebin url is:
ive gone line by line and made sure i had ` before and after with the coma at the end. what am i doing wrong? i keep getting “Invalid or unexpected token” when i type the command.