From 9abbe7cedb931615d5ca92fb0e49c62333535a9f Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Sun, 13 Mar 2022 20:34:13 +0000 Subject: [PATCH] Renamed node-manager to hacknet-manager --- README.md | 44 +++++++++---------- .../{node-manager.js => hacknet-manager.js} | 4 +- scripts/update.js | 2 +- 3 files changed, 25 insertions(+), 25 deletions(-) rename scripts/{node-manager.js => hacknet-manager.js} (94%) diff --git a/README.md b/README.md index a6d7cb2..239ceb7 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ These scripts are for playing the [open source](https://github.com/danielyxie/bi - [Scripts](#scripts) - [connect.js](#connectjs) - [crawler.js](#crawlerjs) + - [hacknet-manager.js](#hacknet-managerjs) - [miner.js](#minerjs) - [network-graph.js](#network-graphjs) - - [node-manager.js](#node-managerjs) - [rootkit.js](#rootkitjs) - [update.js](#updatejs) - [vanguard.js](#vanguardjs) @@ -87,6 +87,27 @@ Options: -h --help Display this help message ``` +### [hacknet-manager.js](./scripts/hacknet-manager.js) +**RAM:** 5.70 GB + +Buy, upgrade & manage Hacknet nodes automatically. Tail for live updates. +``` +[home ~/]> run scripts/hacknet-manager.js --help +Running script with 1 thread(s), pid 1 and args: ["--help"]. +/scripts/hacknet-manager.js: + +Buy, upgrade & manage Hacknet nodes automatically. Tail for live updates. + +Usage: run hacknet-manager.js [OPTIONS] [LIMIT] + run hacknet-manager.js --help + + LIMIT Limit the number of nodes the manager will buy, defaults to 8 + +Options: + -b --balance Prevent spending bellow point + -h --help Display this help message +``` + ### [miner.js](./scripts/miner.js) **RAM:** 2.45 GB @@ -137,27 +158,6 @@ Options: -h --help Display this help message ``` -### [node-manager.js](./scripts/node-manager.js) -**RAM:** 5.70 GB - -Buy, upgrade & manage Hacknet nodes automatically. Tail for live updates. -``` -[home ~/]> run scripts/node-manager.js --help -Running script with 1 thread(s), pid 1 and args: ["--help"]. -/scripts/node-manager.js: - -Buy, upgrade & manage Hacknet nodes automatically. Tail for live updates. - -Usage: run node-manager.js [OPTIONS] [LIMIT] - run node-manager.js --help - - LIMIT Limit the number of nodes the manager will buy, defaults to 8 - -Options: - -b --balance Prevent spending bellow point - -h --help Display this help message -``` - ### [rootkit.js](./scripts/rootkit.js) **RAM:** 4.75 GB - 4.90 GB (depending on un-commented programs) diff --git a/scripts/node-manager.js b/scripts/hacknet-manager.js similarity index 94% rename from scripts/node-manager.js rename to scripts/hacknet-manager.js index 5f7cebf..075a3b9 100644 --- a/scripts/node-manager.js +++ b/scripts/hacknet-manager.js @@ -10,7 +10,7 @@ export async function main(ns) { const historyLength = 17; const messageHistory = Array(historyLength).fill(''); let args, nodeCount = ns.hacknet.numNodes(); - const argParser = new ArgParser('node-manager.js', 'Buy, upgrade & manage Hacknet nodes automatically. Tail for live updates.', null, [ + const argParser = new ArgParser('hacknet-manager.js', 'Buy, upgrade & manage Hacknet nodes automatically. Tail for live updates.', null, [ {name: 'limit', desc: 'Limit the number of nodes the manager will buy, defaults to 8', optional: true, default: 8, type: 'num'}, {name: 'balance', desc: 'Prevent spending bellow point', flags: ['-b', '--balance'], type: 'num'} ]); @@ -29,7 +29,7 @@ export async function main(ns) { function log(message) { ns.clearLog(); ns.print('==================================================='); - ns.print(`Node Manager: ${nodeCount}/${args['limit']} Nodes`); + ns.print(`Hacknet Manager: ${nodeCount}/${args['limit']} Nodes`); ns.print('==================================================='); if(message != null) messageHistory.push(message); messageHistory.splice(0, messageHistory.length - historyLength); diff --git a/scripts/update.js b/scripts/update.js index fc6f717..5957df8 100644 --- a/scripts/update.js +++ b/scripts/update.js @@ -133,9 +133,9 @@ export async function main(ns) { 'connect.js', 'bruteforce.js', 'crawler.js', + 'hacknet-manager.js', 'miner.js', 'network-graph.js', - 'node-manager.js', 'rootkit.js', 'vanguard.js' ];