aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/listeners/other/exit.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/listeners/other/exit.ts b/src/listeners/other/exit.ts
new file mode 100644
index 0000000..d7c12f9
--- /dev/null
+++ b/src/listeners/other/exit.ts
@@ -0,0 +1,15 @@
+import { BushListener } from '@lib';
+
+export default class ExitListener extends BushListener {
+ public constructor() {
+ super('exit', {
+ emitter: 'process',
+ event: 'exit'
+ });
+ }
+
+ public override async exec(code: number): Promise<void> {
+ process.on('exit', () => {});
+ void client.console.error('processExit', `Process ended with code <<${code}>>.`);
+ }
+}