mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
idk
This commit is contained in:
1 parent
f3051e0c1d
commit
8974fd34df
1 file changed
+9
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user