auto reconnect revolt client

This commit is contained in:
Lea 2023-03-21 13:14:15 +01:00
parent d5e4d55e55
commit 8c49c21228
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
2 changed files with 2 additions and 0 deletions

View file

@ -24,6 +24,7 @@ let client = new AutomodClient({
messageTimeoutFix: true,
apiURL: process.env.API_URL,
messageRateLimiter: true,
autoReconnect: true,
}, db);
login(client);

View file

@ -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) => {