title: Discord bot send birthday message
body: <p>I have made a Discord bot and I want it to be able to check the current date, and if current date is any of the users birthday, then it'll tag them and say happy birthday. I have tried using Node.js' Date, like</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>if(Date === "this or that")</code></pre>
  </div>
  </div>
  </p>
  <p>but that didn't seem to work. So what I need help with is:</p>
  <ul>
  <li>Checking the current date (like run a check each day or something)</li>
  <li>send a message at that current date</li>
  </ul>
  <p>I'll probably just hardcode all the birthdays in since we're not that many (I know that's not good practice, but I just want it working for now, I can polish it later)</p>
  <p>If anyone could help me with that, that'd be great.</p>
  <p>This is what my index.js file looks like (if that is relevant):</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const discord = require("discord.js");
  const config = require("./config.json");
  const client = new discord.Client();
  const prefix = '&gt;';
  const fs = require('fs');
  const { time, debug } = require("console");
  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(`${client.user.username} is online`);
  })
  
  client.on('message', message =&gt;
  {
      if(!message.content.startsWith(prefix) || message.author.bot) return;
      const args = message.content.slice(prefix.length).split(/ + /);
      const command = args.shift().toLowerCase();
  
      if(command === 'ping')
      {
          client.commands.get('ping').execute(message, args);
      }else if(command === 'wololo')
      {
          client.commands.get('wololo').execute(message, args);        
      }
  })
  
  client.login('TOKEN')</code></pre>
  </div>
  </div>
  </p>
  <p>Edit:</p>
  <p>I realise I wrote the &quot;if(date)&quot; statement in &quot;client.on('message',message =&gt;{})&quot;, so that obviously wouldn't check unless you wrote a command at that specific time. What function would I use?</p>