Having trouble making a multiple variable nightbot command

Asked Jul 21, 2020·1 reply·Last activity 6 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.

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

1 reply

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