mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
hotfix/added restore queue/added some good stuff to/removing some stuff to
This commit is contained in:
1 parent
ca98dc11aa
commit
8a8925653c
17 files changed
+429
-22
No files matched your search
@@ -101,6 +101,11 @@ process.on("uncaughtExceptionMonitor", (err, origin) => {
|
||||
*/
|
||||
const saveAndExit = async () => {
|
||||
logger.recovery("\n[Shutdown] Cleaning up before exit...");
|
||||
try {
|
||||
await remix.playerState?.saveAllFrom?.(remix.players);
|
||||
} catch (e) {
|
||||
logger.warn("[Shutdown] Player state save failed:", e?.message);
|
||||
}
|
||||
try {
|
||||
if (remix.players?.playerMap) {
|
||||
for (const [channelId, player] of remix.players.playerMap) {
|
||||
|
||||
Reference in new issue
Block a user