auto reconnect revolt client
This commit is contained in:
parent
d5e4d55e55
commit
8c49c21228
2 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ let client = new AutomodClient({
|
||||||
messageTimeoutFix: true,
|
messageTimeoutFix: true,
|
||||||
apiURL: process.env.API_URL,
|
apiURL: process.env.API_URL,
|
||||||
messageRateLimiter: true,
|
messageRateLimiter: true,
|
||||||
|
autoReconnect: true,
|
||||||
}, db);
|
}, db);
|
||||||
login(client);
|
login(client);
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ let AUTUMN_URL = `http://autumnUrl`;
|
||||||
|
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
apiURL: process.env.REVOLT_API_URL,
|
apiURL: process.env.REVOLT_API_URL,
|
||||||
|
autoReconnect: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const login = () => new Promise((resolve: (value: Client) => void) => {
|
const login = () => new Promise((resolve: (value: Client) => void) => {
|
||||||
|
|
Loading…
Reference in a new issue