moriakaice / bitburner

Collection of scripts for https://danielyxie.github.io/bitburner/
ISC License
114 stars 145 forks source link

Update to 1.4.0 #28

Open ComictypX opened 2 years ago

ComictypX commented 2 years ago

This PR includes the PR #13.

What this PR does:

WalkerOhioUni commented 2 years ago

sorry if this is a dumb question, but i am new to GitHub. How do I use these new commits?

ComictypX commented 2 years ago

The easiest it would be if you create a start.js with the following code and run it:

export async function main(ns) {
  if (ns.getHostname() !== "home") {
    throw new Exception("Run the script from home");
  }

  await ns.wget(
    `https://raw.githubusercontent.com/ComictypX/bitburner/master/src/initHacking.js?ts=${new Date().getTime()}`,
    "initHacking.js"
  );
  ns.spawn("initHacking.js", 1);
}

If you just want a single script, you can browse my repo at this URL: https://github.com/ComictypX/bitburner/tree/master (The pr2 Branch is just to revert the repo address to moriakaices repo :) )

WalkerOhioUni commented 2 years ago

thanks :)