sambeano7

birthday function

Jul 21st, 2025 (edited)
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, Component, } = require('discord.js');
  2. const con = require(`./utils/statemanager`);
  3.  
  4. (async () => {
  5.     try {
  6.         const currentMonth = new Date().getMonth();
  7.         const currentDate = new Date().getDate();
  8.         const currentHour = new Date().getHours();
  9.         console.log(con.connection.query(`SELECT * FROM birthdays WHERE month = '${currentMonth + 1}' AND date = '${currentDate}'`));
  10.     } catch (error) {
  11.         console.error(error);
  12.     }
  13. })();
Advertisement
Add Comment
Please, Sign In to add comment