mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
rollback
This commit is contained in:
1 parent
2f51b7e1d7
commit
97fe282bb3
29 files changed
+101
-431
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user