This commit is contained in:
NoLogicAlan committed 2026-10-06 00:32:48 +03:00
1 parent 2f51b7e1d7
commit 97fe282bb3
29 files changed
+101 -431

No files matched your search

-6
View File
@@ -8,10 +8,8 @@
import { logger } from "./src/core/Logger.mjs";
import Remix from "./src/core/Bot.mjs";
import { initErrorChannel, reportCrash } from "./src/core/ErrorChannel.mjs";
import { startHeartbeat } from "./src/core/Heartbeat.mjs";
const remix = new Remix();
startHeartbeat({ isReady: () => Boolean(remix.client?.user) });
initErrorChannel({ config: remix.config, client: remix.client });
@@ -149,10 +147,6 @@ process.on("uncaughtExceptionMonitor", (err, origin) => {
*/
const saveAndExit = async () => {
logger.recovery("\n[Shutdown] Cleaning up before exit...");
setTimeout(() => {
logger.warn("[Shutdown] Cleanup timed out, forcing exit");
process.exit(1);
}, 8000).unref();
try {
await remix.playerState?.saveAllFrom?.(remix.players);
} catch (e) {