palico-bot/src/events/ready.js

20 lines
469 B
JavaScript

import { Events } from "discord.js";
import { showGameServers } from "../features/showGameServers.js";
const event = {
name: Events.ClientReady,
once: true,
async execute(client) {
console.log(
`[${new Date().toLocaleString()}] Logged in as ${client.user.tag}`
);
try {
await showGameServers(client);
} catch (error) {
console.error("Unable to initialize game server status", error);
}
},
};
export { event };