Farming bot for Bitburner game.
You can check this guide on Steam.
Bot takes the following steps
- Checks cost and production growth of all the possible upgrades
- Calculates profitable ratio of each upgrade
- Sorts elements by ratio descending
- Chooses the first element
- Checks if you can purchase upgrade now, if not, it waits to collect money
- Checks if you can buy new node in less than 30 seconds (you can customize this time), if so, it buys it
Profitable ratio = Production growth / upgrade cost
Production growth = Production after upgrade - current production
Take the following steps.
- Run the terminal
- Type
nano hacknet-bot.js
- Copy the code from main.js file and paste into file you just created
- Save the file
- Back to the terminal
- Type
run hacknet-bot.js
You can customize the time of waiting for purchase node (by default 30s) by passing an additional script argument
run hacknet-bot.js 120