Spaces:
Paused
Paused
Update bot.js
Browse files
bot.js
CHANGED
|
@@ -329,7 +329,7 @@ function createBot(agent = null) {
|
|
| 329 |
});
|
| 330 |
|
| 331 |
bot.on("end", () => {
|
| 332 |
-
logger.warn("[" +
|
| 333 |
stopPeriodicHomeChecks();
|
| 334 |
if (usingFallback) {
|
| 335 |
currentIndex = 0; // normal IP’deyken koparsa index sıfırlanır
|
|
@@ -344,7 +344,7 @@ function createBot(agent = null) {
|
|
| 344 |
? reason
|
| 345 |
: JSON.stringify(reason, null, 2);
|
| 346 |
|
| 347 |
-
logger.warn("[" +
|
| 348 |
} catch (e) {
|
| 349 |
logger.error("Bot sunucudan atıldı ama mesaj parse edilemedi: " + e.message);
|
| 350 |
}
|
|
|
|
| 329 |
});
|
| 330 |
|
| 331 |
bot.on("end", () => {
|
| 332 |
+
logger.warn("[" + config["bot-account"]["username"] + "]" + " Bağlantı koptu. Tüm zamanlayıcılar sıfırlanıyor...");
|
| 333 |
stopPeriodicHomeChecks();
|
| 334 |
if (usingFallback) {
|
| 335 |
currentIndex = 0; // normal IP’deyken koparsa index sıfırlanır
|
|
|
|
| 344 |
? reason
|
| 345 |
: JSON.stringify(reason, null, 2);
|
| 346 |
|
| 347 |
+
logger.warn("[" + config["bot-account"]["username"] + "]" + " Bot sunucudan atıldı: " + readable);
|
| 348 |
} catch (e) {
|
| 349 |
logger.error("Bot sunucudan atıldı ama mesaj parse edilemedi: " + e.message);
|
| 350 |
}
|