-1

This is my code below, basically i want the bot to check two things. The users message needs to contain "how" + either "doing" or "bread". It works perfectly when i use only "doing" but not when I add the "bread" condition. I need a clean and simple solution for this and hope someone can help me, bc for me thats the most logical way in archiving what i need :D

if(msg.content.includes("how") && msg.content.includes("doing" || "bread") ){

    if(msg.author != token){ 
        msg.lineReply("I am good sir")
        }

}
Max S
  • 5
  • 1

1 Answers1

0

if(msg.content.includes("how") && (msg.content.includes("doing") || msg.content.includes("bread")) ){

    if(msg.author != token){ 
        msg.lineReply("I am good sir")
        }

}
ace1234
  • 131
  • 7