summaryrefslogtreecommitdiff
path: root/nodejs/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'nodejs/main.ts')
-rwxr-xr-xnodejs/main.ts20
1 files changed, 13 insertions, 7 deletions
diff --git a/nodejs/main.ts b/nodejs/main.ts
index c4f205d..cb819c7 100755
--- a/nodejs/main.ts
+++ b/nodejs/main.ts
@@ -1,17 +1,23 @@
-import * as autoContracting from './automation/contracting.ts';
+import * as autoAgent from './automation/agent.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';
+import { debugLog } from './lib/api.ts';
//debugLog(await send({endpoint: '/'}));
await autoInit.init();
+
debugLog(getAgent());
-debugLog(await getAgent().purchaseShip());
+await autoAgent.run();
+
+//import { market, trait } from './lib/systems.ts';
+//const ws = await trait(ships[0].nav.systemSymbol, 'SHIPYARD');
+//debugLog(ws);
-//const ships = getShips();
-//await autoContracting.run(ships[0]); // dedicate the command ship to running contracts
-//autoExploring.init();
+//for (let w of ws) {
+// debugLog(await market(w));
+//}
+//
+//await ships[0].navigate(await waypoint('X1-GR47-I59'));