cortico-world-hands 0.20.14 → 0.20.16

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2295,6 +2295,9 @@ var HandsWorld = class {
2295
2295
  this.mediaTimer = setInterval(() => {
2296
2296
  void this.maybeCleanMedia();
2297
2297
  }, 30 * 60 * 1e3);
2298
+ setTimeout(() => {
2299
+ void this.maybeCleanMedia();
2300
+ }, 2e4);
2298
2301
  this.qqTimer = setInterval(() => {
2299
2302
  void this.pollQq();
2300
2303
  }, 5e3);
@@ -2505,7 +2508,7 @@ ${lines.join("\n")}
2505
2508
  const keepDays = cfg.mediaKeepDays ?? 1;
2506
2509
  const hour = cfg.mediaCleanHour ?? 4;
2507
2510
  const now = /* @__PURE__ */ new Date();
2508
- if (hour >= 0 && now.getHours() !== hour) return;
2511
+ if (hour > 0 && now.getHours() !== hour) return;
2509
2512
  const slot = Math.floor(now.getTime() / (6 * 3600 * 1e3));
2510
2513
  if (this.lastMediaDay === slot) return;
2511
2514
  const dir = this.mediaDir();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-hands",
3
- "version": "0.20.14",
3
+ "version": "0.20.16",
4
4
  "type": "module",
5
5
  "description": "Cortico World: hands for the desktop pet — looks at the phone screen, then taps, swipes, pinches, drags, types and presses keys through whatever actuator the device actually has",
6
6
  "license": "MIT",