Renamed node-manager to hacknet-manager
This commit is contained in:
parent
bb2d98481f
commit
9abbe7cedb
44
README.md
44
README.md
@ -8,9 +8,9 @@ These scripts are for playing the [open source](https://github.com/danielyxie/bi
|
|||||||
- [Scripts](#scripts)
|
- [Scripts](#scripts)
|
||||||
- [connect.js](#connectjs)
|
- [connect.js](#connectjs)
|
||||||
- [crawler.js](#crawlerjs)
|
- [crawler.js](#crawlerjs)
|
||||||
|
- [hacknet-manager.js](#hacknet-managerjs)
|
||||||
- [miner.js](#minerjs)
|
- [miner.js](#minerjs)
|
||||||
- [network-graph.js](#network-graphjs)
|
- [network-graph.js](#network-graphjs)
|
||||||
- [node-manager.js](#node-managerjs)
|
|
||||||
- [rootkit.js](#rootkitjs)
|
- [rootkit.js](#rootkitjs)
|
||||||
- [update.js](#updatejs)
|
- [update.js](#updatejs)
|
||||||
- [vanguard.js](#vanguardjs)
|
- [vanguard.js](#vanguardjs)
|
||||||
@ -87,6 +87,27 @@ Options:
|
|||||||
-h --help Display this help message
|
-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)
|
### [miner.js](./scripts/miner.js)
|
||||||
**RAM:** 2.45 GB
|
**RAM:** 2.45 GB
|
||||||
|
|
||||||
@ -137,27 +158,6 @@ Options:
|
|||||||
-h --help Display this help message
|
-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)
|
### [rootkit.js](./scripts/rootkit.js)
|
||||||
**RAM:** 4.75 GB - 4.90 GB <small>(depending on un-commented programs)</small>
|
**RAM:** 4.75 GB - 4.90 GB <small>(depending on un-commented programs)</small>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ export async function main(ns) {
|
|||||||
const historyLength = 17;
|
const historyLength = 17;
|
||||||
const messageHistory = Array(historyLength).fill('');
|
const messageHistory = Array(historyLength).fill('');
|
||||||
let args, nodeCount = ns.hacknet.numNodes();
|
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: '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'}
|
{name: 'balance', desc: 'Prevent spending bellow point', flags: ['-b', '--balance'], type: 'num'}
|
||||||
]);
|
]);
|
||||||
@ -29,7 +29,7 @@ export async function main(ns) {
|
|||||||
function log(message) {
|
function log(message) {
|
||||||
ns.clearLog();
|
ns.clearLog();
|
||||||
ns.print('===================================================');
|
ns.print('===================================================');
|
||||||
ns.print(`Node Manager: ${nodeCount}/${args['limit']} Nodes`);
|
ns.print(`Hacknet Manager: ${nodeCount}/${args['limit']} Nodes`);
|
||||||
ns.print('===================================================');
|
ns.print('===================================================');
|
||||||
if(message != null) messageHistory.push(message);
|
if(message != null) messageHistory.push(message);
|
||||||
messageHistory.splice(0, messageHistory.length - historyLength);
|
messageHistory.splice(0, messageHistory.length - historyLength);
|
@ -133,9 +133,9 @@ export async function main(ns) {
|
|||||||
'connect.js',
|
'connect.js',
|
||||||
'bruteforce.js',
|
'bruteforce.js',
|
||||||
'crawler.js',
|
'crawler.js',
|
||||||
|
'hacknet-manager.js',
|
||||||
'miner.js',
|
'miner.js',
|
||||||
'network-graph.js',
|
'network-graph.js',
|
||||||
'node-manager.js',
|
|
||||||
'rootkit.js',
|
'rootkit.js',
|
||||||
'vanguard.js'
|
'vanguard.js'
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user