This question already has an answer here:
I'm making a discord robot where you can talk to the robot, but if the user says hello, hey or hi, how should I then check what they say?
I have tried with this:
if (message.content == "hello" || message.content == "hi" || message.content == "hey")
But I think its a bit too long, and if I want to add more, then the code will become were long
Also if its possible to put it inside an array, then it will be super
PS: I have node.js on the robot, so you can use node.js if you want.
Aucun commentaire:
Enregistrer un commentaire