From 4bc38236d0fcb6fb099345265bc68f33e6b8d156 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 24 May 2016 11:56:51 -0400 Subject: [PATCH] Test --- public/bot.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/bot.js b/public/bot.js index 763f087..381e5d5 100644 --- a/public/bot.js +++ b/public/bot.js @@ -99,10 +99,8 @@ function mainLoop() { if(haveSlimes(SAFE_SOLDIER_COUNT) === false && botFightRandom === true && botPurchasing === false) { setBotToPurchasing(); clickSelector('button[name="buyx-knight"]'); - botPurchasingTimer = setInterval(function() { - botFillIn('input[name="x_amount"]', SAFE_SOLDIER_COUNT); - clickButton("Yes"); - }, 250); + botFillIn('input[name="x_amount"]', SAFE_SOLDIER_COUNT); + clickButton("Buy"); } if(haveCreepers(SAFE_SOLDIER_COUNT) === false && botFightRandom === true && botPurchasing === false) {