mervebultx commited on
Commit
ba64683
·
verified ·
1 Parent(s): 37d624e

Update bot.js

Browse files
Files changed (1) hide show
  1. bot.js +5 -5
bot.js CHANGED
@@ -277,12 +277,12 @@ function createBot(agent = null) {
277
  setSafeTimeout(() => {
278
  bot.chat(`/login ${password}`);
279
  logger.info(`[${config["bot-account"]["username"]}] Login komutu kullanıldı.`);
280
- }, 2500);
281
 
282
  setSafeTimeout(() => {
283
  bot.chat(`/skyblock`);
284
  logger.info(`[${config["bot-account"]["username"]}] Skyblock'a ışınlanma komutu kullanıldı.`);
285
- }, 7500);
286
 
287
  setSafeTimeout(async () => {
288
  await goHome();
@@ -299,7 +299,7 @@ function createBot(agent = null) {
299
  await new Promise(r => setTimeout(r, POST_ACTION_DELAY_MS));
300
  await returnIsland();
301
  }, PERIODIC_CHECK_INTERVAL_MS);
302
- }, 12500);
303
  }
304
  });
305
 
@@ -329,7 +329,7 @@ function createBot(agent = null) {
329
  });
330
 
331
  bot.on("end", () => {
332
- logger.warn("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,7 +344,7 @@ function createBot(agent = null) {
344
  ? reason
345
  : JSON.stringify(reason, null, 2);
346
 
347
- logger.warn("Bot sunucudan atıldı: " + readable);
348
  } catch (e) {
349
  logger.error("Bot sunucudan atıldı ama mesaj parse edilemedi: " + e.message);
350
  }
 
277
  setSafeTimeout(() => {
278
  bot.chat(`/login ${password}`);
279
  logger.info(`[${config["bot-account"]["username"]}] Login komutu kullanıldı.`);
280
+ }, 5000);
281
 
282
  setSafeTimeout(() => {
283
  bot.chat(`/skyblock`);
284
  logger.info(`[${config["bot-account"]["username"]}] Skyblock'a ışınlanma komutu kullanıldı.`);
285
+ }, 15000);
286
 
287
  setSafeTimeout(async () => {
288
  await goHome();
 
299
  await new Promise(r => setTimeout(r, POST_ACTION_DELAY_MS));
300
  await returnIsland();
301
  }, PERIODIC_CHECK_INTERVAL_MS);
302
+ }, 21000);
303
  }
304
  });
305
 
 
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
  }