Having trouble making a multiple variable nightbot command

I am trying to make a the last of us command that tells about 40 different random jokes from the game when you type it in, and all I get is “Unexpected token ‘<’”

The command I am trying to make: !addcom -cd=5 !nopunintended $(eval a=$(urlfetch json https://pastebin.com/qsM2QQdp);a[Math.floor(Math.random()*a.length)])

The pastebin: https://pastebin.com/qsM2QQdp

Hiya, make sure you are using the raw pastebin link when you grab the data: https://pastebin.com/raw/qsM2QQdp

1 Like

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