title: Problem with word filter using discord js, code gives no output
body: <p>So this is the current code I have for the word filter. I have an array of the censored words in a JSON file. Whenever I try to run the bot and type in a swear word I get no response and no error msgs in Powershell.
  I'm quite a beginner so excuse any mistakes and excuse the train wreck of a code this is. Just trying to learn.</p>
  <pre class="lang-js prettyprint-override"><code>const { Client, Collection, Intents } = require('discord.js');
  
  const { wordFilter} = require(&quot;./filter.json&quot;);
  
  const {clientId, guildId, token, prefix} = require('./config.json');
  
  const Discord = require('discord.js')
  
  const client = new Client({ intents: [
      Intents.FLAGS.GUILDS, 
      Intents.FLAGS.GUILD_MESSAGES, 
      Intents.FLAGS.GUILD_MEMBERS, 
      Intents.FLAGS.GUILD_BANS, 
      Intents.FLAGS.GUILD_MESSAGE_REACTIONS, 
      Intents.FLAGS.GUILD_MESSAGES
  ] });
  
  const fs = require('fs');
  
  const giveMeaJoke = require('discord-jokes');
  
  
  client.commands = new Discord.Collection();    
  
  const commandFiles = fs.readdirSync(&quot;./Commands/&quot;).filter(file =&gt; file.endsWith(&quot;.js&quot;));
  
  for(const file of commandFiles){
      const command = require(`./Commands/${file}`);
  
      client.commands.set(command.name, command);
  }
  
  
  
   
  client.once('ready', () =&gt; {
      console.log('Bot is now available!');
  });
  
  client.on('messageCreate', message =&gt; {
  
  
      const command = message.content;
  
  //Profanity Filter
  if(message.author.id = &quot;909209531811242044&quot;){
      return
  }
  
  let foundinText = true;
  for(const word in wordFilter){
      if(message.content.toLowerCase().includes(wordFilter[word].toLowerCase())) foundinText = true;
  }
  if(foundinText){
      message.delete();
      message.reply('Be polite, no swearing please');
  }
  // End of profanity Filter
  
      if(message.content == 'Hello')message.reply(&quot;Hello!&quot;);
  
      if(command == prefix + 'Ping'){
          client.commands.get('Ping').execute(message, command);
      }
  
  
      if(!message.content.startsWith(prefix)) return;
      
      if(message.content.toLowerCase()==  prefix + 'hello'){
          message.reply('Hello!');
  
      }if(command == prefix + 'Website'){
          client.commands.get('Website').execute(message, command);
      }
  
      if(message.content.toLowerCase()== prefix + 'joke'){
          giveMeaJoke.getRandomDadJoke(function(joke){
              message.reply(joke);
          });
     
      }
  
  
  
  
  });
  
  
  
  client.login(token);
  </code></pre>