Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, Component, } = require('discord.js');
- const con = require(`./utils/statemanager`);
- (async () => {
- try {
- const currentMonth = new Date().getMonth();
- const currentDate = new Date().getDate();
- const currentHour = new Date().getHours();
- console.log(con.connection.query(`SELECT * FROM birthdays WHERE month = '${currentMonth + 1}' AND date = '${currentDate}'`));
- } catch (error) {
- console.error(error);
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment