aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/other/exit.ts
blob: 63274e5affe11e483d15b93a0d49b63e3f70e6f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { BotListener, Emitter } from '#lib';

export default class ExitListener extends BotListener {
	public constructor() {
		super('exit', {
			emitter: Emitter.Process,
			event: 'exit'
		});
	}

	public async exec(code: number) {
		await this.client.console.error('processExit', `Process ended with code <<${code}>>.`);
	}
}