Skip to content

feat(onboard): auto-detect messaging platform for cron delivery - #111

Merged
ADD-SP merged 1 commit into
mainfrom
add_sp/fix-cron-delivery
Apr 12, 2026
Merged

ADD-SP merged 1 commit into
mainfrom
add_sp/fix-cron-delivery

Conversation

@ADD-SP

@ADD-SP ADD-SP commented Apr 12, 2026

Copy link
Copy Markdown
Collaborator

The weekly stats cron job always used local delivery (Hermes) / --no-deliver (OpenClaw) so the report went to a log file nobody checks. Now clawshell onboard probes for a configured messaging platform and delivers the stats report there instead.

Hermes: read ~/.hermes/.env for DISCORD_BOT_TOKEN, TELEGRAM_BOT_TOKEN, or SLACK_BOT_TOKEN. First non-empty match adds --deliver to hermes cron create.

OpenClaw: run openclaw config get channels --json and iterate [telegram, discord, slack, mattermost] in priority order. First platform whose config exists and isn't {enabled: false} replaces --no-deliver with --announce --channel .

Both fall back to the previous no-delivery behavior when no platform is detected. Step 6 now prints the detected target (e.g. "deliver: discord" or "deliver: log only").

The weekly stats cron job always used local delivery (Hermes) /
--no-deliver (OpenClaw) so the report went to a log file nobody
checks. Now clawshell onboard probes for a configured messaging
platform and delivers the stats report there instead.

Hermes: read ~/.hermes/.env for DISCORD_BOT_TOKEN,
TELEGRAM_BOT_TOKEN, or SLACK_BOT_TOKEN. First non-empty match
adds --deliver <platform> to `hermes cron create`.

OpenClaw: run `openclaw config get channels --json` and iterate
[telegram, discord, slack, mattermost] in priority order. First
platform whose config exists and isn't {enabled: false} replaces
--no-deliver with --announce --channel <platform>.

Both fall back to the previous no-delivery behavior when no
platform is detected. Step 6 now prints the detected target
(e.g. "deliver: discord" or "deliver: log only").
@ADD-SP
ADD-SP merged commit a3556ab into main Apr 12, 2026
4 checks passed
@ADD-SP
ADD-SP deleted the add_sp/fix-cron-delivery branch April 12, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant