Invalid or unexpected token

Asked Feb 8, 2022·2 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.

So my friend has given me one of their nightbot commands for twitch. Which works on their channel. But it comes up Invalid or unexpected token when trying to use it on mine.

$(eval a=Math.floor(Math.random()*10+1);@$(user)'s Vibes Are ${a}/10. $(user) Has ${a>=6?Passed:Failed} the Vibe Check.)

Any idea why it isn't working?

2 replies

Well the main issue is you have no quotes or backticks
~~> ` <\~\~

cheers, the problem was when my friend sent me the code over discord. the quotes were removed for some reason. thank you for your help