Hey there,
I just started with JavaScript and have no idea for what to search in my case. So sorry if this had been aswered or asked before!
I made a discord bot with Eclipse. Everything is working so far, the bot is responding to various commands.
Now I want to do a command like “Hello!” and the bot randomly picks an answer from 4 different response options. Like:
Hello!
Possible answers: Hello
Good Morning
Hello, how are you?
Hi!
And once a user typed “hello!” in the channel the bot will pick one of the responses. Writing “hello!” again will pick another answer.
How to do that? I know there isn’t an “Either” command in JavaScript so I am a little helpless and I’d be really happy for help.
Thank you!