24 lines
708 B
TypeScript
24 lines
708 B
TypeScript
import { Client } from '../class';
|
|
|
|
export default class {
|
|
public client: Client;
|
|
|
|
constructor(client: Client) {
|
|
this.client = client;
|
|
}
|
|
|
|
public async run() {
|
|
this.client.util.signale.start(`${this.client.user.username} is now ready!\nServers: ${this.client.guilds.size}\nUsers: ${this.client.users.size}\n\nhttps://gitlab.libraryofcode.org/engineering/communityrelations`);
|
|
this.client.on('error', (err) => {
|
|
this.client.util.handleError(err);
|
|
});
|
|
process.on('uncaughtException', (err) => {
|
|
this.client.util.handleError(err);
|
|
process.exit(1);
|
|
});
|
|
process.on('unhandledRejection', (err: Error) => {
|
|
this.client.util.handleError(err);
|
|
});
|
|
}
|
|
}
|