HELP! 8ball command doesnt work?

Asked Aug 23, 2021·4 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.

Hi, I tried making the 8ball command with this (down below) and when I try the command all nightbot says is “🎱 Invalid or unexpected token” Please help!

!commands add !8ball 🎱 $(eval const responses = ['All signs point to yes...', 'Yes!', 'My sources say nope.', 'You may rely on it.', 'Concentrate and ask again...', 'Outlook not so good...', 'It is decidedly so!', 'Better not tell you.', 'Very doubtful.', 'Yes - Definitely!', 'It is certain!', 'Most likely.', 'Ask again later.', 'No!', 'Outlook good.', 'Don\'t count on it.']; responses[Math.floor(Math.random() * responses.length)];)

4 replies

You’re using ‘’ instead of ` or '

?? Im confused I dont see instead? Sorry I don’t know much about Nightbot or code.

You are useing

‘ and ’

While you should be using

' ` or "