← 返回
沟通协作

Casual Cron

Create Clawdbot cron jobs from natural language with strict run-guard rules. Use when: users ask to schedule reminders or messages (recurring or one-shot), especially via Telegram, or when they use /at or /every. Examples: 'Create a daily reminder at 8am', 'Remind me in 20 minutes', 'Send me a Telegram message at 3pm', '/every 2h'.
根据自然语言创建Clawdbot定时任务,严格运行守卫规则。适用场景:用户请求安排提醒或消息(循环或一次性),尤其是通过Telegram,或使用/at、/every指令。示例:'每天8点提醒'、'20分钟后提醒'、'下午3点发送Telegram消息'、'/every 2h'
gostlightai
沟通协作 clawhub v1.2.0 1 版本 99132.4 Key: 无需
★ 1
Stars
📥 3,522
下载
💾 219
安装
1
版本
#latest

概述

Casual Cron

Create Clawdbot cron jobs from natural language. Supports one-shot and repeating schedules with safe run-guard rules.

Cron Run Guard (Hard Rules)

  • When running inside a cron job: do NOT troubleshoot, do NOT restart gateway, and do NOT check time.
  • Do NOT send acknowledgements or explanations.
  • Output ONLY the exact message payload and then stop.

How It Works

  1. Agent detects scheduling intent from user message (or /at / /every command)
  2. Parses: time, frequency, channel, destination, message
  3. Builds openclaw cron add command with correct flags
  4. Confirms parsed time, job name, and job id with user before executing

Scheduling Rules

When a message starts with /at or /every, schedule via the CLI (NOT the cron tool API).

Use: openclaw cron add

/at (one-shot)

  • If user gives a clock time (e.g., "3pm"), convert to ISO with offset computed for America/New_York on that date (DST-safe).
  • Prefer relative times for near-term reminders (e.g., --at "20m").
  • Use --session isolated --message "Output exactly: ".
  • Always include --delete-after-run.
  • Always include --deliver --channel --to .

/every (repeating)

  • If interval: use --every "" (no timezone needed).
  • If clock time: use --cron "" --tz "America/New_York".
  • Use --session isolated --message "Output exactly: ".
  • Always include --deliver --channel --to .

Confirmation

  • Always confirm parsed time, job name, and job id with the user before finalizing.

Command Reference

One-shot (clock time, DST-aware):

openclaw cron add \
  --name "Reminder example" \
  --at "2026-01-28T15:00:00-05:00" \
  --session isolated \
  --message "Output exactly: <TASK>" \
  --deliver --channel telegram --to <TELEGRAM_CHAT_ID> \
  --delete-after-run

One-shot (relative time):

openclaw cron add \
  --name "Reminder in 20m" \
  --at "20m" \
  --session isolated \
  --message "Output exactly: <TASK>" \
  --deliver --channel telegram --to <TELEGRAM_CHAT_ID> \
  --delete-after-run

Repeating (clock time, DST-aware):

openclaw cron add \
  --name "Daily 3pm reminder" \
  --cron "0 15 * * *" --tz "America/New_York" \
  --session isolated \
  --message "Output exactly: <TASK>" \
  --deliver --channel telegram --to <TELEGRAM_CHAT_ID>

Repeating (interval):

openclaw cron add \
  --name "Every 2 hours" \
  --every "2h" \
  --session isolated \
  --message "Output exactly: <TASK>" \
  --deliver --channel telegram --to <TELEGRAM_CHAT_ID>

Configuration

SettingValue
----------------
Default timezoneAmerica/New_York (DST-aware)
Default channeltelegram (override via CRON_DEFAULT_CHANNEL env var)
Supported channelstelegram, whatsapp, slack, discord, signal

Supported Patterns

Time Formats

InputCron
-------------
8am0 8 *
8:45pm45 20 *
noon0 12 *
midnight0 0 *
14:3030 14 *

Frequencies

InputBehavior
-----------------
daily / every dayDaily at specified time
weekdays / mon-friMon-Fri at specified time
mondays / every mondayWeekly on Monday
hourly / every hourEvery hour at :00
every 2 hours0 /2
weeklyWeekly (defaults to Monday)
monthlyMonthly (1st of month)

版本历史

共 1 个版本

  • v1.2.0 当前
    2026-03-28 12:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,577
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,670
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 113 📥 52,385