๐ฆ ClawHub
Auto Updater Pro
by @newolf20000
Enhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection.
๐ก Examples
Ask Clawdbot to set up the auto-updater:
Set up daily auto-updates for yourself and all your skills.
Or manually add the cron job:
clawdbot cron add \
--name "Daily Auto-Update" \
--cron "0 4 * * *" \
--tz "America/Los_Angeles" \
--session isolated \
--wake now \
--deliver \
--message "Run daily auto-updates: check for Clawdbot updates and update all skills. Report what was updated."
Recommended Configuration (v1.1.0+)
For production use, add these settings to your cron job:
{
"schedule": {
"expr": "0 4 * * *",
"kind": "cron",
"tz": "Asia/Shanghai"
},
"missedRunPolicy": "run-immediately",
"payload": {
"kind": "agentTurn",
"message": "...",
"timeoutSeconds": 600
}
}
Key Settings:
missedRunPolicy: "run-immediately" - Auto-runs if Gateway was offline at scheduled timetimeoutSeconds: 600 - Allow 10 minutes for updates to completetz: "Asia/Shanghai" - Set to your timezoneโ๏ธ Configuration
Quick Start
Ask Clawdbot to set up the auto-updater:
Set up daily auto-updates for yourself and all your skills.
Or manually add the cron job:
clawdbot cron add \
--name "Daily Auto-Update" \
--cron "0 4 * * *" \
--tz "America/Los_Angeles" \
--session isolated \
--wake now \
--deliver \
--message "Run daily auto-updates: check for Clawdbot updates and update all skills. Report what was updated."
Recommended Configuration (v1.1.0+)
For production use, add these settings to your cron job:
{
"schedule": {
"expr": "0 4 * * *",
"kind": "cron",
"tz": "Asia/Shanghai"
},
"missedRunPolicy": "run-immediately",
"payload": {
"kind": "agentTurn",
"message": "...",
"timeoutSeconds": 600
}
}
Key Settings:
missedRunPolicy: "run-immediately" - Auto-runs if Gateway was offline at scheduled timetimeoutSeconds: 600 - Allow 10 minutes for updates to completetz: "Asia/Shanghai" - Set to your timezone๐ Tips & Best Practices
1. Schedule During Low Activity
Choose a time when you're unlikely to be using the system:
"expr": "0 4 * * *" // 4:00 AM
2. Enable Missed Run Recovery
Prevents missing updates if Gateway is offline:
"missedRunPolicy": "run-immediately"
3. Use Email for Reports
Less intrusive than chat messages:
4. Log Everything
Always write to log file before sending reports:
5. Wait After Updates
Add 30-second delay before any Gateway restart:
sleep 30
TERMINAL
clawhub install auto-updater-pro