Polarcraft/discordbot/events/ready.js

18 lines
402 B
JavaScript
Raw Normal View History

2023-08-02 14:16:30 +02:00
const { Events } = require('discord.js');
const deployCommands = require('../functions/deployCommands');
2023-08-11 11:14:59 +02:00
const { Users, Team, Minecraft } = require('../functions/models');
2023-08-02 14:16:30 +02:00
module.exports = {
2023-08-03 12:06:31 +02:00
name: Events.ClientReady,
once: true,
execute(client) {
Users.sync();
2023-08-11 11:14:59 +02:00
Team.sync();
2023-08-03 12:06:31 +02:00
Minecraft.sync();
2023-08-02 14:16:30 +02:00
2023-08-03 12:06:31 +02:00
console.log(`Ready! Logged in as ${client.user.tag}`);
deployCommands();
},
2023-08-02 14:16:30 +02:00
};