Ruzxa
1
When I write this in nightbot
!addcom @nightbot $(eval const responses = ['خيير؟’,’عييون البوت’,’هلا؟’,’ازعجتني يالمزعج’,’آمر وش بغيت’,’شنو فيه؟’,’تفضل’]; responses[Math.floor(Math.random() * responses.length)]; )
It says Invalid or unexpected token
Emily
2
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
Ruzxa
3
Thank you so much, that worked
system
Closed
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.