mirror of
https://github.com/nx-bat/pet-the-pond.git
synced 2026-09-22 02:19:10 -04:00
28 lines
677 B
TypeScript
28 lines
677 B
TypeScript
import { CommandClient, Event } from 'athena-prime';
|
|
|
|
// ----------
|
|
|
|
class ReadyEvent extends Event<CommandClient> {
|
|
event: string = 'ready' as const;
|
|
|
|
async handle(context: CommandClient<any, any>) {
|
|
await context.deployCommands();
|
|
context.setCustomActivity('Tracking your petting!');
|
|
|
|
await context.createMessage(process.env.LOGGING_CHANNEL, {
|
|
embed: {
|
|
color: 0x55ff55,
|
|
|
|
title: 'Bot Ready',
|
|
|
|
fields: [
|
|
{ name: 'Guilds', value: `${context.guilds.size}`, inline: true },
|
|
{ name: 'Shards', value: `${context.shards.size}`, inline: true },
|
|
]
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
export default new ReadyEvent('ready');
|