summaryrefslogtreecommitdiff
path: root/nodejs/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'nodejs/main.ts')
-rwxr-xr-xnodejs/main.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/nodejs/main.ts b/nodejs/main.ts
index 2d15c60..c4f205d 100755
--- a/nodejs/main.ts
+++ b/nodejs/main.ts
@@ -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());
+
+debugLog(await getAgent().purchaseShip());
-await autoContracting.run(ships[0]); // dedicate the command ship to running contracts
+//const ships = getShips();
+//await autoContracting.run(ships[0]); // dedicate the command ship to running contracts
//autoExploring.init();