1
0
Fork 0
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:
ChomeNS 2022-08-20 18:31:36 +07:00
parent 8abb38ae9e
commit bb4574ea84

View file

@ -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);