openclaw-plugin-grinders-farm 0.3.1 → 0.3.2
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/README.md +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
10
10
|
const FARM_IMAGE_PATH = path.join(os.homedir(), ".grinders-farm", "farm.png");
|
|
11
11
|
const OPENCLAW_MEDIA_DIR = path.join(os.homedir(), ".openclaw", "media", "grinders-farm");
|
|
12
12
|
const ONESHOT_RELATIVE_PATH = path.join("src", "adapters", "oneshot.ts");
|
|
13
|
-
const DEFAULT_START_INTERVAL_SEC = 20;
|
|
13
|
+
const DEFAULT_START_INTERVAL_SEC = 20 * 60;
|
|
14
14
|
const ONESHOT_TIMEOUT_MS = 15_000;
|
|
15
15
|
function resolveGameRoot(api) {
|
|
16
16
|
const raw = api.pluginConfig;
|
|
@@ -337,7 +337,7 @@ const plugin = {
|
|
|
337
337
|
return;
|
|
338
338
|
const autoStart = runOneshot(runtime, "start");
|
|
339
339
|
if (autoStart.exitCode === 0) {
|
|
340
|
-
api.logger?.info?.("grinders-farm: 已通过 CLI 模式启动自动推进(固定
|
|
340
|
+
api.logger?.info?.("grinders-farm: 已通过 CLI 模式启动自动推进(固定 20 分钟)");
|
|
341
341
|
}
|
|
342
342
|
else {
|
|
343
343
|
api.logger?.warn?.(`grinders-farm: CLI 模式自动推进启动失败:${autoStart.text}`);
|