mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2025-03-24 02:49:44 -04:00
6000 timeout
This commit is contained in:
parent
8abb38ae9e
commit
bb4574ea84
1 changed files with 9 additions and 9 deletions
18
index.js
18
index.js
|
@ -397,16 +397,16 @@ function main() {
|
|||
console.log(`Disconnected (${event} event): ${util.inspect(reason)}`);
|
||||
channel.send(`Disconnected (${event} event): ${util.inspect(reason)}`);
|
||||
|
||||
let timeout = 3500;
|
||||
const timeout = 1000 * 6;
|
||||
|
||||
try {
|
||||
if (reason.text) {
|
||||
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) {
|
||||
console.log(e.message);
|
||||
}
|
||||
// try {
|
||||
// if (reason.text) {
|
||||
// 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) {
|
||||
// console.log(e.message);
|
||||
// }
|
||||
|
||||
try {
|
||||
clearInterval(corefill);
|
||||
|
|
Loading…
Add table
Reference in a new issue