Error

I got error in if else
mail@pastecode.io avatar
unknown
plain_text
2 years ago
301 B
5
Indexable
bot.command("m", (ctx) => {
  let input = ctx.message.text.split(" ");
  
  if (input.length != 2) {
    ctx.reply("Please Put Input");
    return;
  } else if (input.length != 6) {
    ctx.reply("Minimum Length is 6");
  } else if (input.length < 6) {
    ctx.reply("You Put 6 length input");
  }

})