Hi, if this is not the place for it.
I don't know exactly how use the function awaitResponse, someone can send a practical example?
Thanks
This should be a nice example:
if(msg.content === "quiz") {
bot.awaitResponse(msg, "What color is the sky?")
.then(nextMessage => {
if(nextMessage.content.toLowerCase() === "blue") {
bot.sendMessage(msg, "Correct :tada:");
} else {
bot.sendMessage(msg, "Wrong!!");
}
});
}
For smaller questions you'll get quick help on Discord API#node_discord.js
Most helpful comment
This should be a nice example:
For smaller questions you'll get quick help on Discord API#node_discord.js