Invalid or unexpected token

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?

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

1 Like

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