diff --git a/src/middleware/Controller.ts b/src/middleware/Controller.ts index 20faef0..9828da4 100644 --- a/src/middleware/Controller.ts +++ b/src/middleware/Controller.ts @@ -86,6 +86,7 @@ class Controller extends EventEmitter // this.#shardingManager.on('message', this._handleMessage.bind(this)); process.on('SIGINT', this.shutdown.bind(this)); + process.on('SIGTERM', this.shutdown.bind(this)); } async build ()