feat(discord): handle client ready event

Refs: #22
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Opus 5 committed 2026-09-13 12:19:11 +02:00
1 parent df8f43a4fd
commit 007ffc103e
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,
});
}