summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorJulien Dessaux2023-06-08 09:21:05 +0200
committerJulien Dessaux2023-06-08 09:21:05 +0200
commitda567a11eef2b3536d58b44741e91988b1c33598 (patch)
tree36ab4332efbf88f9f41730ff5ab7ced67a95fa1f /main.js
parentUse waypoints function where relevant (diff)
downloadspacetraders-da567a11eef2b3536d58b44741e91988b1c33598.tar.gz
spacetraders-da567a11eef2b3536d58b44741e91988b1c33598.tar.bz2
spacetraders-da567a11eef2b3536d58b44741e91988b1c33598.zip
Implement a bit more autonomy for the ships
Diffstat (limited to '')
-rwxr-xr-xmain.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.js b/main.js
index 61a1ab8..6785301 100755
--- a/main.js
+++ b/main.js
@@ -18,10 +18,10 @@ status Servers' status`);
switch(process.argv[2]) {
case 'autoContractForShip':
- await autoContracting.auto({ship: process.argv[3]});
+ await autoContracting.auto({symbol: process.argv[3]});
break;
case 'autoMiningForShip':
- await autoMining.mineUntilFullOf({ship: process.argv[3], good: 'NON_EXISTENT'});
+ await autoMining.mineUntilFullOf({symbol: process.argv[3], good: 'NON_EXISTENT'});
break;
case 'my-agent':
api.debugLog(await api.send({endpoint: '/my/agent'}));