Spaces:
Paused
Paused
Update bot.js
Browse files
bot.js
CHANGED
|
@@ -42,10 +42,17 @@ function createBot() {
|
|
| 42 |
logger.info(`[${config["bot-account"]["username"]}] Home konumuna ışınlanma komutu kullanıldı.`);
|
| 43 |
}, 10000);
|
| 44 |
setInterval(async () => {
|
| 45 |
-
if(Object.keys(bot.entities).filter(ff => JSON.stringify(bot.entities[ff]).includes("
|
| 46 |
-
bot.activateEntityAt(bot.entities[Object.keys(bot.entities).filter(ff => JSON.stringify(bot.entities[ff]).includes("
|
| 47 |
}else{
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
};
|
| 50 |
}, 30000);
|
| 51 |
|
|
|
|
| 42 |
logger.info(`[${config["bot-account"]["username"]}] Home konumuna ışınlanma komutu kullanıldı.`);
|
| 43 |
}, 10000);
|
| 44 |
setInterval(async () => {
|
| 45 |
+
if(Object.keys(bot.entities).filter(ff => JSON.stringify(bot.entities[ff]).includes("Besleyici ")).length > 0){
|
| 46 |
+
bot.activateEntityAt(bot.entities[Object.keys(bot.entities).filter(ff => JSON.stringify(bot.entities[ff]).includes("Besleyici "))[0]], bot.entities[Object.keys(bot.entities).filter(ff => JSON.stringify(bot.entities[ff]).includes("Besleyici "))[0]].position)
|
| 47 |
}else{
|
| 48 |
+
setTimeout(async () => {
|
| 49 |
+
bot.chat(`/skyblock`);
|
| 50 |
+
logger.info(`[${config["bot-account"]["username"]}] Bölgede besleyici minyon bulunamadı.Skyblock'a ışınlanma komutu kullanıldı.`);
|
| 51 |
+
}, 5000);
|
| 52 |
+
setTimeout(async () => {
|
| 53 |
+
bot.chat(`/home`);
|
| 54 |
+
logger.info(`[${config["bot-account"]["username"]}] Bölgede besleyici minyon bulunamadı.Home konumuna ışınlanma komutu kullanıldı.`);
|
| 55 |
+
}, 10000);
|
| 56 |
};
|
| 57 |
}, 30000);
|
| 58 |
|