← 返回
未分类 中文

GOG Cleanup

Find GOG games installed but not played for 30+ days, email the list, and add Apple Reminders to consider uninstalling. One-command cleanup sweep for your ba...
Find GOG games installed but not played for 30+ days, email the list, and add Apple Reminders to consider uninstalling. One-command cleanup sweep for your ba...
terrycarter1985
未分类 clawhub v1.0.0 1 版本 99576.3 Key: 无需
★ 0
Stars
📥 235
下载
💾 0
安装
1
版本
#latest

概述

GOG Cleanup

Automated stale-game cleanup sweep: finds installed GOG games you haven't played in 30+ days, emails you a digest, and creates Apple Reminders so you can decide whether to uninstall.

What It Does

  1. Reads your GOG library from config/gog_library.json
  2. Filters for installed games whose last_played is 30+ days ago (or never played)
  3. Sends a formatted digest email via himalaya
  4. Adds each stale game to the Gaming list in Apple Reminders via remindctl

Prerequisites

ToolPurposeInstall
------------------------
jqJSON parsingbrew install jq
himalayaSend emailbrew install himalaya
remindctlApple Remindersbrew install steipete/tap/remindctl
  • Himalaya must be configured with a personal account (see config/himalaya.toml)
  • Apple Reminders must have a Gaming list (auto-created if missing)

Usage

Run the full sweep (email + reminders)

bash scripts/gog-cleanup.sh

Email only (skip reminders)

SKIP_REMINDERS=1 bash scripts/gog-cleanup.sh

Reminders only (skip email)

SKIP_EMAIL=1 bash scripts/gog-cleanup.sh

Custom stale threshold (default 30 days)

STALE_DAYS=60 bash scripts/gog-cleanup.sh

Custom recipient (defaults to himalaya personal account email)

EMAIL_TO="other@example.com" bash scripts/gog-cleanup.sh

Configuration

The script reads from workspace config/:

FilePurpose
---------------
config/gog_library.jsonGOG game library with install status & last_played timestamps
config/himalaya.tomlHimalaya email account config (uses personal account)
config/reminders_lists.jsonReminders list structure (Gaming list)

Output

  • Email: HTML-formatted digest sent to your personal inbox
  • Reminders: One reminder per stale game in the Gaming list, prefixed with "🧹 Consider uninstalling:"
  • Console: Summary of games found and actions taken

Scheduling

To run weekly via cron:

# Add to crontab for Monday 9 AM
0 9 * * 1 /path/to/scripts/gog-cleanup.sh >> /tmp/gog-cleanup.log 2>&1

Or use OpenClaw's cron tool for agent-managed scheduling.

Notes

  • Games with last_played: null (never played) are always included
  • Uninstalled games are always skipped regardless of last_played
  • The script is idempotent — re-running won't duplicate reminders (existing reminders with the same title are skipped)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 14:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Python Support

terrycarter1985
OpenClaw代理的Python语言支持,提供环境配置、依赖管理、代码检查、测试及Python代码执行最佳实践。
★ 0 📥 667

Code Formatter

terrycarter1985
代码格式化最佳实践及常用语言(Python、JavaScript、JSON、Markdown 等)的快速参考,使用 Prettier、Black、ESLint 等工具。
★ 0 📥 667

Stock Price Alert

terrycarter1985
股价异动实时提醒,支持行情接口、邮件和Sonos语音播报
★ 0 📥 689