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 CHANGED
@@ -37,7 +37,7 @@ openclaw plugins inspect grinders-farm
37
37
 
38
38
  说明:
39
39
 
40
- - `start` 固定每 20 秒推进一天
40
+ - `start` 固定每 20 分钟推进一天
41
41
  - 会自动推送到所有已绑定频道(先发送过 `/farm ...` 的频道)
42
42
 
43
43
  ## 常用配置
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 模式启动自动推进(固定 20s)");
340
+ api.logger?.info?.("grinders-farm: 已通过 CLI 模式启动自动推进(固定 20 分钟)");
341
341
  }
342
342
  else {
343
343
  api.logger?.warn?.(`grinders-farm: CLI 模式自动推进启动失败:${autoStart.text}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-plugin-grinders-farm",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "OpenClaw plugin for Grinder's Farm: deterministic /farm command and grinders_farm tool.",