webhook-promo-scheduler

Schedule and send promo/alert messages to a Discord webhook URL with an anti-spam ledger.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "webhook-promo-scheduler" with this command: npx skills add marcia-assistant/webhook-promo-scheduler

webhook-promo-scheduler

Schedule and send promo/alert messages to a Discord webhook URL with an anti-spam ledger.

What it does

  • Posts to a Discord webhook (JSON payload with content)
  • Maintains a JSONL ledger to enforce max 1 successful post per day per channel
  • Provides a rotation mode that cycles through a message list
  • Supports --dry-run so you can validate cadence/ledger without sending anything

Positioning (best angle)

  • Ship updates without becoming a spammer (or leaking a webhook): strict cadence + audit trail.

Files

  • scripts/post_webhook.py : Discord webhook POST helper (stdlib only)
  • scripts/ledger.py : JSONL ledger helpers (stdlib only)
  • scripts/promo_scheduler.py : CLI tool (stdlib only)

Ledger

  • Default: ~/.openclaw/webhook-promo-ledger.jsonl
  • Override: --ledger-path /path/to/ledger.jsonl
  • JSONL fields (per line): date, channel, status, hash

Safety

  • The CLI refuses to print the webhook URL.
  • Logs redact any webhook URL if it would appear.
  • Recommended: keep the webhook in a private channel, rotate it if leaked, and use --dry-run before enabling live sends.

FAQ (security)

Q: This exposes a Discord webhook — is that dangerous? A: Treat it like a password. This tool won’t print it, supports secret injection, and has --dry-run + a ledger so you can validate behavior before turning on live posting. If you want zero direct exposure, put a relay (Cloudflare Worker / Supabase Edge Function) in front and keep the real webhook private.

Usage

One-shot post:

python3 {baseDir}/scripts/promo_scheduler.py post \
  --webhook-url <URL> \
  --channel openclaw-discord \
  --message "Hello from OpenClaw!"

Draft rotation:

python3 {baseDir}/scripts/promo_scheduler.py rotate \
  --webhook-url <URL> \
  --channel openclaw-discord \
  --messages-file messages.txt

messages.txt format:

  • One message per non-empty line
  • Lines starting with # are ignored

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Aws Fis Experiment Prepare

Use when the user wants to prepare, create, or generate an AWS FIS (Fault Injection Service) experiment configuration. Triggers on "prepare FIS experiment",...

Registry SourceRecently Updated
General

Aws Fis Experiment Execute

Use when the user wants to run a prepared AWS FIS experiment where the CloudFormation stack has already been deployed. Triggers on "execute FIS experiment",...

Registry SourceRecently Updated
General

Warranty Return Dispute Kit

Organizes a defective-product, denied-warranty, or return-window dispute into an evidence packet, timeline, support message, escalation script, contact log,...

Registry SourceRecently Updated
General

Goldman Sachs Co

提供高盛公司历史、业务模式、市场地位及关键数据,助力研究投资银行和金融机构角色分析。

Registry SourceRecently Updated