/bitburner-hacknet-bot

Farming bot for Bitburner game

Primary LanguageJavaScript

Hacknet Bot

Farming bot for Bitburner game.

You can check this guide on Steam.

How it Works

Bot takes the following steps

  1. Checks cost and production growth of all the possible upgrades
  2. Calculates profitable ratio of each upgrade
  3. Sorts elements by ratio descending
  4. Chooses the first element
  5. Checks if you can purchase upgrade now, if not, it waits to collect money
  6. 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

How to use

Take the following steps.

  1. Run the terminal
  2. Type nano hacknet-bot.js
  3. Copy the code from main.js file and paste into file you just created
  4. Save the file
  5. Back to the terminal
  6. 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