dankgrinder 7.6.0 → 7.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dankgrinder.js +2 -2
- package/lib/commands/farm.js +416 -86
- package/lib/commands/farmVision.js +190 -96
- package/lib/commands/utils.js +17 -3
- package/lib/grinder.js +77 -20
- package/lib/rawLogger.js +23 -2
- package/package.json +1 -1
package/bin/dankgrinder.js
CHANGED
|
@@ -33,7 +33,7 @@ if (args.includes('--version') || args.includes('-v')) {
|
|
|
33
33
|
process.exit(0);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
let apiKey = process.env.DANKGRINDER_KEY || '';
|
|
36
|
+
let apiKey = process.env.DANKGRINDER_KEY || process.env.GRINDER_API_KEY || '';
|
|
37
37
|
let apiUrl = '';
|
|
38
38
|
let redisUrl = '';
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ for (let i = 0; i < args.length; i++) {
|
|
|
43
43
|
if (args[i] === '--redis' && args[i + 1]) redisUrl = args[i + 1];
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
apiUrl = apiUrl || process.env.DANKGRINDER_URL || DEFAULT_URL;
|
|
46
|
+
apiUrl = apiUrl || process.env.DANKGRINDER_URL || process.env.GRINDER_URL || DEFAULT_URL;
|
|
47
47
|
if (redisUrl) process.env.REDIS_URL = redisUrl;
|
|
48
48
|
|
|
49
49
|
// Keep process alive on transient discord interaction fetch failures.
|