-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.js
More file actions
18 lines (18 loc) · 671 Bytes
/
bot.js
File metadata and controls
18 lines (18 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
document.getElementById("topBar").innerHTML = "<div>KATWITOOL [BOT]</div>";
setInterval(function () {
Game.ClickCookie();
Game.shimmerTypes.golden.time = Game.shimmerTypes.golden.maxTime;
if (Game.shimmers.length) {
Game.shimmers[0].pop();
}
for (upgrade in Game.UpgradesById) {
if (Game.UpgradesById[upgrade].unlocked && !Game.UpgradesById[upgrade].bought && Game.UpgradesById[upgrade].pool != "toggle" && upgrade != 69) {
Game.UpgradesById[upgrade].buy();
}
}
var prices = [];
for (item in Game.ObjectsById) {
prices.push(Game.ObjectsById[item].price);
}
Game.ObjectsById[prices.indexOf(Math.min.apply(Math, prices))].buy();
}, 1);