Renamed node-manager to hacknet-manager
This commit is contained in:
		
							
								
								
									
										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)
 | 
			
		||||
	- [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 <small>(depending on un-commented programs)</small>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
@@ -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'
 | 
			
		||||
    ];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user