const args = message.content.split(" ");
const questionString = args.slice(1).join(" ");
if (questionString.includes(("THIS" && "THAT"))) message.channel.send(`Sure thing, <@${message.author.id}>`);
So I am trying to make my Bot check if both of these are included in a message. The problem is thought that the bot doesn't react to just "THIS" being in the message, but it reacts when just "THAT" is included in the message which I don't want. I only want the Bot to respond when both "THIS" and "THAT" are included. I couldn't find anything about AND statements in Discord JS and the ones I found for normal JavaScript tutorials always showed it like that. Is it different for Discord JS? And if so what do I have to do to make it work. Thanks!
Aucun commentaire:
Enregistrer un commentaire