feat: implement graceful shutdown process for bot

- Added graceful shutdown functionality to handle SIGINT, SIGTERM, uncaught exceptions, and unhandled promise rejections.
- Integrated stopRecording and pause functionality during shutdown.
- Enhanced logging for shutdown steps and error handling.
- Updated package.json to include pino-pretty for improved logging output.
This commit is contained in:
MythEclipse
2026-05-13 16:32:14 +07:00
parent 3ae28157a3
commit 673a06376c
4 changed files with 69 additions and 1545 deletions
+1
View File
@@ -32,6 +32,7 @@
"@types/express": "^5.0.6",
"@types/fluent-ffmpeg": "^2.1.28",
"@types/ws": "^8.18.1",
"pino-pretty": "^10.3.1",
"vitest": "latest"
}
}