This commit is contained in:
NoLogicAlan committed 2026-08-18 11:24:20 +03:00
1 parent f3051e0c1d
commit 8974fd34df
1 file changed
+9
+9
View File
@@ -114,6 +114,7 @@ export class Remix {
};
let presenceRotationIndex = presenceContents.length > 1 ? 1 : 0;
let presenceRotationStarted = false;
let wsHandlerRearmStarted = false;
const timers = config.timers ?? {};
this.T = {
@@ -287,6 +288,14 @@ export class Remix {
this._attachWsErrorHandlers();
if (!wsHandlerRearmStarted) {
wsHandlerRearmStarted = true;
setInterval(() => {
this._attachWsErrorHandlers();
this.gatewayHandler.attachRawListener();
}, 5_000).unref?.();
}
const botId = client.user?.id ?? "0";
await this.settingsMgr.setBotId(botId);