From 8c49c21228f04d4daeb39ff7e7f6d5d1c0aef49a Mon Sep 17 00:00:00 2001 From: Lea Date: Tue, 21 Mar 2023 13:14:15 +0100 Subject: [PATCH] auto reconnect revolt client --- bot/src/index.ts | 1 + bridge/src/revolt/client.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/bot/src/index.ts b/bot/src/index.ts index e4d44ca..50fd931 100644 --- a/bot/src/index.ts +++ b/bot/src/index.ts @@ -24,6 +24,7 @@ let client = new AutomodClient({ messageTimeoutFix: true, apiURL: process.env.API_URL, messageRateLimiter: true, + autoReconnect: true, }, db); login(client); diff --git a/bridge/src/revolt/client.ts b/bridge/src/revolt/client.ts index f1a7402..a075098 100644 --- a/bridge/src/revolt/client.ts +++ b/bridge/src/revolt/client.ts @@ -6,6 +6,7 @@ let AUTUMN_URL = `http://autumnUrl`; const client = new Client({ apiURL: process.env.REVOLT_API_URL, + autoReconnect: true, }); const login = () => new Promise((resolve: (value: Client) => void) => {