mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
discord cloop fix
This commit is contained in:
parent
aefd3d374a
commit
6bcfaaf084
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -179,12 +179,12 @@ function main() {
|
|||
console.log(`Disconnected from ${bot.options.host} (${event} event): ${util.inspect(reason)}`);
|
||||
channel.send(`Disconnected: \`${util.inspect(reason)}\``);
|
||||
|
||||
const timeout = config.reconnectTimeout;
|
||||
let timeout = config.reconnectTimeout;
|
||||
|
||||
try {
|
||||
if (reason.text) {
|
||||
if (reason.text === 'Wait 5 seconds before connecting, thanks! :)') timeout = 1000 * 7;
|
||||
if (reason.text === 'You are logging in too fast, try again later.') timeout = 1000 * 7;
|
||||
if (reason.text === 'Wait 5 seconds before connecting, thanks! :)') timeout = 1000 * 6;
|
||||
if (reason.text === 'You are logging in too fast, try again later.') timeout = 1000 * 6;
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue