Things are a bit complicated, but here's an example to illustrate:
I've set up this event:
client.on('message', async message => {
if (message.content.toLowerCase().includes("megumin"))
{
message.channel.send("What's up?");
}
});
However, I also have another event declared:
client.on('message', async message => {
if (message.content.toLowerCase().includes("thanks megumin"))
{
message.channel.send("We are welcome UwU");
}
});
The issue arises when I type "thanks megumin" in the chat, and the bot triggers both events! What I actually want is for it to only respond to "thanks megumin" specifically, without reacting to the mention of "megumin" within the sentence. Can anyone help me with this?
Thank you @Levi_OP!