summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2023-05-30 22:22:16 +0200
committerJulien Dessaux2023-05-30 22:22:16 +0200
commitafe2db8a35c175c6fdd1cd9f120fcc466dd71f2e (patch)
treea93a6d135ad4445c3b4bf448c75d8eafa17e79a5
parentRetry on HTTP timeout instead of propagating the error (diff)
downloadspacetraders-afe2db8a35c175c6fdd1cd9f120fcc466dd71f2e.tar.gz
spacetraders-afe2db8a35c175c6fdd1cd9f120fcc466dd71f2e.tar.bz2
spacetraders-afe2db8a35c175c6fdd1cd9f120fcc466dd71f2e.zip
Refactoring
Diffstat (limited to '')
-rw-r--r--automation/contracting.js (renamed from automation/contract.js)0
-rwxr-xr-xmain.js4
2 files changed, 2 insertions, 2 deletions
diff --git a/automation/contract.js b/automation/contracting.js
index aebb265..aebb265 100644
--- a/automation/contract.js
+++ b/automation/contracting.js
diff --git a/main.js b/main.js
index 92aca26..04214fd 100755
--- a/main.js
+++ b/main.js
@@ -1,4 +1,4 @@
-import * as autoContract from './automation/contract.js';
+import * as autoContracting from './automation/contracting.js';
import * as autoMining from './automation/mining.js';
import * as agent from './lib/agent.js';
import * as api from './lib/api.js';
@@ -18,7 +18,7 @@ status Servers' status`);
switch(process.argv[2]) {
case 'autoContractForShip':
- await autoContract.auto({ship: process.argv[3]});
+ await autoContracting.auto({ship: process.argv[3]});
break;
case 'autoMiningForShip':
await autoMining.mineUntilFullOf({ship: process.argv[3], good: 'NON_EXISTENT'});