Polarcraft/discordbot/events/ready.js
2023-08-03 12:06:31 +02:00

18 lines
404 B
JavaScript

const { Events } = require('discord.js');
const deployCommands = require('../functions/deployCommands');
const { Users, Teams, Minecraft } = require('../functions/models');
module.exports = {
name: Events.ClientReady,
once: true,
execute(client) {
Users.sync();
Teams.sync();
Minecraft.sync();
console.log(`Ready! Logged in as ${client.user.tag}`);
deployCommands();
},
};