B
This commit is contained in:
parent
0f8b3f7702
commit
63251383d8
16
index.js
16
index.js
|
@ -194,15 +194,15 @@ function updateStatus(addr, port, msg) {
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is online, edited embed.`);
|
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is online, edited embed.`);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${server.ip}:${server.port}`);
|
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`);
|
||||||
updateStatus(addr, port, msg);
|
updateStatus(addr, port, msg);
|
||||||
}, 15000)
|
}, 10000)
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(`${colors.red("[ERROR]")} ${err}`);
|
console.log(`${colors.red("[ERROR]")} ${err}`);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${server.ip}:${server.port}`);
|
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`);
|
||||||
updateStatus(addr, port, msg);
|
updateStatus(addr, port, msg);
|
||||||
}, 15000)
|
}, 10000)
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is offline.`);
|
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is offline.`);
|
||||||
|
@ -248,15 +248,15 @@ function updateStatus(addr, port, msg) {
|
||||||
}).then((msg) => {
|
}).then((msg) => {
|
||||||
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is offline, edited embed.`);
|
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is offline, edited embed.`);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${server.ip}:${server.port}`);
|
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`);
|
||||||
updateStatus(addr, port, msg);
|
updateStatus(addr, port, msg);
|
||||||
}, 15000)
|
}, 10000)
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(`${colors.red("[ERROR]")} ${err}`);
|
console.log(`${colors.red("[ERROR]")} ${err}`);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${server.ip}:${server.port}`);
|
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`);
|
||||||
updateStatus(addr, port, msg);
|
updateStatus(addr, port, msg);
|
||||||
}, 15000)
|
}, 10000)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue