Skip to content

Instantly share code, notes, and snippets.

@fadelakin
Forked from AndrewCraswell/codeBot.js
Last active December 25, 2015 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fadelakin/7036286 to your computer and use it in GitHub Desktop.
Save fadelakin/7036286 to your computer and use it in GitHub Desktop.
Simple bot for CoderClicker: http://coderclicker.meteor.com/ for when you have lots and lots of money only. Not for when starting out. How to use: Paste the following into the JavaScript console in your browser and run it. To start the bot type: "CodeBot.start();" to stop it do: "CodeBot.stop();" (or just reload the page). This gist was fashione…
CodeBot = {
start: function() {
this.clickInterval = setInterval(function(){
// Click the code button fast as possible!
$(".code.btn").click();
}, 1);
this.buyInterval = setInterval(function(){
// Try to buy items as fast as possible, starting with more expensive ones
// NOTE: We have fallbacks because we will start earning money too fast to rely on only buying Monkeys
$("#50000000000").click();
$("#7000000000").click();
$("#1000000000").click();
$("#300000000").click();
$("#60000000").click();
$("#10000000").click();
}, 1);
},
stop: function() {
clearInterval(this.clickInterval);
clearInterval(this.buyInterval);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment