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)]; )

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.