title: discord.js command handling else if problem
body: <p>I'm new to discord.js and I'm trying to make a really simple command with command handling.</p>
  <p>The content of the <code>bot.js</code> file:</p>
  <pre class="lang-js prettyprint-override"><code>const Discord = require('discord.js');
  const client = new Discord.Client();
  const { prefix, token } = require(&quot;./config.json&quot;);
  
  const fs = require(&quot;fs&quot;);
  client.commands = new Discord.Collection();
  const commandFiles = fs.readdirSync('./commands').filter(file =&gt; file.endsWith('.js'));
  
  for (const file of commandFiles) {
      const command = require(`./commands/${file}`);
      client.commands.set(command.name, command);
  }
  
  client.once('ready', () =&gt; {
      console.log('On!');})
  
  
  client.on('message', async message =&gt; {
      if (!message.content.startsWith(prefix) || message.author.bot) return;
  
      const args = message.content.slice(prefix.length).trim().split(/ +/);
      const command = args.shift().toLowerCase();
  
      if (!client.commands.has(command)) return;
  
      try {
      client.commands.get(command).execute(message, args);
      } catch (error) {
      console.error(error);
      message.reply(&quot;Error&quot;);
      }
  </code></pre>
  <p>The content of the <code>lunedi1.js</code> file:</p>
  <pre class="lang-js prettyprint-override"><code>const Discord = require('discord.js');
  const fs = require(&quot;fs&quot;);
  const client = new Discord.Client();
  const { prefix, token } = require(&quot;../config.json&quot;);
  
  module.exports = {
      name: &quot;lunedi1&quot;,
      description: &quot;Codici videolezioni, li puoi ottenere facendo '.&lt;giorno&gt; &lt;ora&gt;&quot;,
      execute(message, args) {
          if(message.content.startsWith(prefix + &quot;lunedi1&quot;)){
             return message.channel.send(&quot;Diritto, 1630027401&quot;)
          }else if(message.content.startsWith(prefix + &quot;lunedi2&quot;)){
              return message.channel.send(&quot;Italiano, 959924441&quot;)
          }else if(message.content.startsWith(prefix + &quot;lunedi3&quot;)){
              return message.channel.send(&quot;Italiano, 959924441&quot;)
          }else if(message.content.startsWith(prefix + &quot;lunedi4&quot;)){
              return message.channel.send(&quot;Fisica LAB, 954071647&quot; )
          }else if(message.content.startsWith(prefix + &quot;lunedi5&quot;)){
              return message.channel.send(&quot;Informatica, 1213333512&quot;)
          }else if(message.content.startsWith(prefix + &quot;martedi1&quot;)){
              return message.channel.send(&quot;Informatica, 1213333512&quot;)
          }else if(message.content.startsWith(prefix + &quot;martedi2&quot;)){
              return message.channel.send(&quot;Georgrafia, 951609580&quot;)
          }else if(message.content.startsWith(prefix + &quot;martedi3&quot;)){
              return message.channel.send(&quot;Chimica, 952232255&quot;)
          }else if(message.content.startsWith(prefix + &quot;martedi4&quot;)){
              return  message.channel.send(&quot;Chimica, 952232255&quot;)
          }else if(message.content.startsWith(prefix + &quot;martedi5&quot;)){
              return message.channel.send(&quot;Inglese, 953894058&quot;)
          }else if(message.content.startsWith(prefix + &quot;martedi6&quot;)){
              return message.channel.send(&quot;Storia, 959924441&quot;)
          }else if(message.content.startsWith(prefix + &quot;mercoledi1&quot;)){
              return message.channel.send(&quot;Grafica, 954902455&quot;)
          }else if(message.content.startsWith(prefix + &quot;mercoledi2&quot;)){
              return message.channel.send(&quot;Italiano, 959924441&quot;)
          }else if(message.content.startsWith(prefix + &quot;mercoledi3&quot;)){
              return message.channel.send(&quot;Italiano, 959924441&quot;)
          }else if(message.content.startsWith(prefix + &quot;mercoledi4&quot;)){
              return message.channel.send(&quot;Inglese, 953894058&quot;)
          }else if(message.content.startsWith(prefix + &quot;mercoledi5&quot;)){
              return message.channel.send(&quot;Inglese, 953894058&quot;)
          }else if(message.content.startsWith(prefix + &quot;mercoledi6&quot;)){
              return message.channel.send(&quot;Religione, 955444970&quot;)
          }else if(message.content.startsWith(prefix + &quot;giovedi1&quot;)){
              return  message.channel.send(&quot;Matematica, 957066907&quot;)
          }else if(message.content.startsWith(prefix + &quot;giovedi2&quot;)){
              return message.channel.send(&quot;Matematica, 957066907&quot;)
          }else if(message.content.startsWith(prefix + &quot;giovedi3&quot;)){
              return  message.channel.send(&quot;Grafica, 954902455&quot;)
          }else if(message.content.startsWith(prefix + &quot;giovedi4&quot;)){
              return message.channel.send(&quot;Grafica, 954902455&quot;)
          }else if(message.content.startsWith(prefix + &quot;giovedi5&quot;)){
              return message.channel.send(&quot;Scienze della Terra, 1632151557&quot;)
          }else if(message.content.startsWith(prefix + &quot;venerdi1&quot;)){
              return  message.channel.send(&quot;Fisica, 1752593012&quot;)
          }else if(message.content.startsWith(prefix + &quot;venerdi2&quot;)){
              return message.channel.send(&quot;Fisica, 1752593012&quot;)
          }else if(message.content.startsWith(prefix + &quot;venerdi3&quot;)){
              return message.channel.send(&quot;Chimica, 952232255&quot;)
          }else if(message.content.startsWith(prefix + &quot;venerdi4&quot;)){
              return message.channel.send(&quot;Storia, 959924441&quot;)
          }else if(message.content.startsWith(prefix + &quot;venerdi5&quot;)){
              return message.channel.send(&quot;Educazione fisica, 140876521&quot;)
          }else if(message.content.startsWith(prefix + &quot;venerdi6&quot;)){
              return message.channel.send(&quot;Educazione fisica, 140876521&quot;)
          }else if(message.content.startsWith(prefix + &quot;sabato1&quot;)){
              return message.channel.send(&quot;Informatica, 1213333512&quot;)
          }else if(message.content.startsWith(prefix + &quot;sabato2&quot;)){
              return message.channel.send(&quot;Diritto, 1630027401&quot;)
          }else if(message.content.startsWith(prefix + &quot;sabato3&quot;)){
              return message.channel.send(&quot;Scienze della Terra, 1632151557&quot;)
          }else if(message.content.startsWith(prefix + &quot;sabato4&quot;)){
              return message.channel.send(&quot;Matematica, 957066907&quot;)
          }else if(message.content.startsWith(prefix + &quot;sabato5&quot;)){
              return message.channel.send(&quot;Matematica, 957066907&quot;)
          }
      },
  };
  </code></pre>
  <p>As you can see it is really simple but when I want that when I do like &quot;.martedi2&quot; I don't get &quot;Georgrafia, 951609580&quot; but it only works with &quot;.lunedi1&quot;, others don't work and like do other 30 commands will be rlly confusing. If you need more info I can give that. Thx to everyone that will help me :)</p>