Invalid or unexpected token, can someone help

When I write this in nightbot

!addcom @nightbot $(eval const responses = ['خيير؟’,’عييون البوت’,’هلا؟’,’ازعجتني يالمزعج’,’آمر وش بغيت’,’شنو فيه؟’,’تفضل’]; responses[Math.floor(Math.random() * responses.length)]; )

It says Invalid or unexpected token

Hey @Ruzxa!

That’s because some of your quote symbols are in fact apostrophes: instead of '.

$(eval const responses = ['خيير؟','عييون البوت','هلا؟','ازعجتني يالمزعج','آمر وش بغيت','شنو فيه؟','تفضل']; responses[Math.floor(Math.random() * responses.length)]; )
2 Likes

Thank you so much, that worked :white_heart::white_heart:

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