Eval/Urlfetch Backfire

I’m losing my mind over trying to figure out this code. If anyone can help me figure it out in any shape or form that would be amazing. I’m trying to have it randomly pull from raw code I made in pastebin (i’ll post below). I feel no matter what I change nothing is working. Nightbot just keeps telling me unexpected identifier. If anyone can help in any way shape or form I’d be so grateful

side note I am not a coder, I literally have no idea what I’m doing besides looking at videos of others that don’t seem to work for me
goal Have the command pull a random line from my pastebin code
This is the code I have in Nightbot currently:
$(eval a=$urlfetch json https://pastebin.com/raw/605R1qT0);a[Math.floor(Math.random()*a.length)])

Plz help. I have no idea what I’m doing :frowning:

You are missing a parenthesis:

$(urlfetch

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