[node] fixed and optimized contracting
This commit is contained in:
parent
6504e44ffa
commit
ccbfd9deb9
5 changed files with 61 additions and 44 deletions
|
@ -1,10 +1,17 @@
|
|||
import * as autoContracting from './automation/contracting.ts';
|
||||
//import * as autoExploring from './automation/exploration.ts';
|
||||
import * as autoInit from './automation/init.ts';
|
||||
import { getAgent } from './lib/agent.ts';
|
||||
import { getShips } from './lib/ships.ts';
|
||||
import { debugLog, send } from './lib/api.ts';
|
||||
|
||||
//debugLog(await send({endpoint: '/'}));
|
||||
|
||||
await autoInit.init();
|
||||
const ships = await getShips();
|
||||
debugLog(getAgent());
|
||||
|
||||
await autoContracting.run(ships[0]); // dedicate the command ship to running contracts
|
||||
debugLog(await getAgent().purchaseShip());
|
||||
|
||||
//const ships = getShips();
|
||||
//await autoContracting.run(ships[0]); // dedicate the command ship to running contracts
|
||||
//autoExploring.init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue