← 返回
沟通协作 Key 中文

WooCommerce Stock Monitor

Monitor WooCommerce products for out-of-stock changes and send Telegram alerts. Run daily via cron.
监控 WooCommerce 产品缺货状态并发送 Telegram 通知,每日通过 cron 执行。
zero2ai-hub
沟通协作 clawhub v1.0.1 2 版本 99862.3 Key: 需要
★ 0
Stars
📥 725
下载
💾 17
安装
2
版本
#latest

概述

skill-woocommerce-stock-monitor v1.0.0

Monitor WooCommerce products for out-of-stock changes and send Telegram alerts. Tracks instock → outofstock transitions and alerts your team daily.

Usage

node scripts/stock-monitor.js

Configuration

Set via environment variables:

VariableDefaultDescription
---------
WOO_API_PATH~/woo-api.jsonPath to WooCommerce API credentials JSON
TELEGRAM_BOT_TOKENTelegram bot token for alerts
TELEGRAM_CHAT_IDTelegram chat/group ID to send alerts to

woo-api.json format

{
  "url": "https://your-store.com",
  "consumer_key": "ck_...",
  "consumer_secret": "cs_..."
}

Cron setup

# Run daily at 07:00 UTC
0 7 * * * TELEGRAM_BOT_TOKEN=xxx TELEGRAM_CHAT_ID=yyy node /path/to/scripts/stock-monitor.js

Behavior

  • First run: Sends a baseline report of all currently OOS products
  • Subsequent runs: Only alerts on new instock → outofstock transitions
  • State file: Saved to memory/stock-state.json (tracks previous run)

Alerts

  • 📦 Stock Monitor — Baseline Report — first run summary
  • ⚠️ Stock Alert — Out of Stock — when products go OOS

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-03-29 11:58 安全 安全
  • v1.0.0
    2026-03-26 21:39

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Himalaya

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

imap-smtp-email

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

Slack

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