refactor: replace cron usage docs in TOOLS.md with reference to cron skill
This commit is contained in:
@@ -10,27 +10,6 @@ This file documents non-obvious constraints and usage patterns.
|
|||||||
- Output is truncated at 10,000 characters
|
- Output is truncated at 10,000 characters
|
||||||
- `restrictToWorkspace` config can limit file access to the workspace
|
- `restrictToWorkspace` config can limit file access to the workspace
|
||||||
|
|
||||||
## Cron — Scheduled Reminders
|
## cron — Scheduled Reminders
|
||||||
|
|
||||||
Use `exec` to create scheduled reminders:
|
- Please refer to cron skill for usage.
|
||||||
|
|
||||||
```bash
|
|
||||||
# Recurring: every day at 9am
|
|
||||||
nanobot cron add --name "morning" --message "Good morning!" --cron "0 9 * * *"
|
|
||||||
|
|
||||||
# With timezone (--tz only works with --cron)
|
|
||||||
nanobot cron add --name "standup" --message "Standup time!" --cron "0 10 * * 1-5" --tz "Asia/Shanghai"
|
|
||||||
|
|
||||||
# Recurring: every 2 hours
|
|
||||||
nanobot cron add --name "water" --message "Drink water!" --every 7200
|
|
||||||
|
|
||||||
# One-time: specific ISO time
|
|
||||||
nanobot cron add --name "meeting" --message "Meeting starts now!" --at "2025-01-31T15:00:00"
|
|
||||||
|
|
||||||
# Deliver to a specific channel/user
|
|
||||||
nanobot cron add --name "reminder" --message "Check email" --at "2025-01-31T09:00:00" --deliver --to "USER_ID" --channel "CHANNEL"
|
|
||||||
|
|
||||||
# Manage jobs
|
|
||||||
nanobot cron list
|
|
||||||
nanobot cron remove <job_id>
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user