Help with $(eval responses)

!commands edit !8ball $(eval responses = ['Il me semble.', 'Oui!', 'Il paraît.', 'Tu peux en en avoir la certitude.', 'J\'en doute…', 'C\'est certain !', 'Il ne vaut mieux pas te le dire.', 'C\'est peu probable.', 'Oui c\'est sûr !', 'C\'est certain.', 'Sûrement.', 'Si je te le dis je serai obligé de te tuer.', 'Kappa', 'Quelle question….', 'Je n\'ai jamais rien entendu d'aussi bête.', 'LUL', 'Info sûre.', 'Fake news.', 'Non!', 'Ne compte pas la dessus.'];)

What’s wrong with my command ? It keeps saying ‘Right-hand side of ‘instanceof’ is not an object’

Help

1 Like

@ZPlin There is a phrase with some single quotes that you forgot to put a backslash in front of:

Je n\'ai jamais rien entendu d'aussi bête.

Copy and paste this into chat:

!commands edit !8ball $(eval a=['Il me semble.','Oui!','Il paraît.','Tu peux en en avoir la certitude.','J\'en doute…','C\'est certain!','Il ne vaut mieux pas te le dire.','C\'est peu probable.','Oui c\'est sûr !','C\'est certain.','Sûrement.','Si je te le dis je serai obligé de te tuer.','Kappa','Quelle question….','Je n\'ai jamais rien entendu d\'aussi bête.','LUL','Info sûre.','Fake news.','Non!','Ne compte pas la dessus.'];a[Math.floor(Math.random()*a.length)])

Thanks a lot, i read the command so many times trying to figure if i didn’t forget anything ^^ thanks again

1 Like

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