How to use pastebin list in Nightbot

Asked Nov 29, 2021·3 replies·Last activity 4 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.

Hello, I am trying to make a Nightbot command using pastebin and I was receiving a message that read [Response must be less than 400 characters] so I adjusted my written text and now I am getting Unexpected identifier, what do I do to fix this?

I am using

$(eval a=$(urlfetch json https://pastebin.com/raw/B8VR6NVZ
);a[Math.floor(Math.random()*a.length)])

3 replies

'You play ball like Shaquille O'Neal',
Should be
'You play ball like Shaquille O\'Neal',

The only one I saw it’s not my job to check your code.