summaryrefslogtreecommitdiff
path: root/nodejs/main.ts
blob: c4f205dc2b6d72957ce13809b446ef80f4797aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
debugLog(getAgent());

debugLog(await getAgent().purchaseShip());

//const ships = getShips();
//await autoContracting.run(ships[0]); // dedicate the command ship to running contracts
//autoExploring.init();