feat(discord): handle client ready event

Refs: #22
This commit is contained in:
nocode committed 2026-09-13 12:25:06 +02:00
1 parent fb63cc9a2f
commit 0fb20d120a
1 file changed
+15
+15
View File
@@ -0,0 +1,15 @@
import { ActivityType, Events } from 'discord.js';
import { createLogger } from '../core/logger.js';
const log = createLogger('discord');
export const name = Events.ClientReady;
export const once = true;
export async function execute(client) {
client.user.setActivity('FWS Arch', { type: ActivityType.Watching });
log.info(`Connected as ${client.user.tag}`, {
guilds: client.guilds.cache.size,
commands: client.commands.size,
});
}