/[sudobot]/trunk/src/events/ready/ReadyEvent.ts
ViewVC logotype

Contents of /trunk/src/events/ready/ReadyEvent.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 58 - (show annotations)
Mon Jul 29 17:28:25 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: application/typescript
File size: 465 byte(s)
Added debug info support and startup manager
1 import BaseEvent from '../../utils/structures/BaseEvent';
2 import DiscordClient from '../../client/Client';
3 import { runTimeouts } from '../../utils/setTimeout';
4
5 export default class ReadyEvent extends BaseEvent {
6 constructor() {
7 super('ready');
8 }
9
10 async run(client: DiscordClient) {
11 console.log(`\nLogged in as ${client.user!.tag}!`);
12 client.server.run();
13 runTimeouts();
14 client.startupManager.boot();
15 }
16 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26