feat(discord): handle client ready event
Refs: #22 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 file changed
+15
@@ -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,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user