finish up current features

This commit is contained in:
Crylia
2024-09-13 21:03:14 +02:00
parent 72b7c978a3
commit 5ed26bd488
10 changed files with 124 additions and 108 deletions

View File

@@ -1,4 +1,5 @@
const { Client, GatewayIntentBits, Partials, Routes } = require('discord.js')
require('dotenv').config()
const { REST } = require('@discordjs/rest')
const { SlashCommandBuilder } = require('@discordjs/builders')
const {
@@ -24,6 +25,8 @@ const {
const { startBirthdayCheckCron } = require('../tasks/checkBirthday')
const { startEventCheckCron } = require('../tasks/eventReminder')
const rest = new REST({ version: '10' }).setToken(process.env.BOT_TOKEN)
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
@@ -135,9 +138,6 @@ client.on('messageReactionRemove', async (reaction, user) => {
messageReactionRemove(user, reaction)
})
const rest = new REST({ version: '10' }).setToken(process.env.BOT_TOKEN)
client.once('ready', async () => {
console.log(`Logged in as ${client.user.tag} `)
startBirthdayCheckCron(client)