返回顶部
a

auto-reply自动回复

Instagram DM auto-reply system. DM monitoring, reading, replying, security check (injection rejection). Use when checking Instagram DMs, reading unread messages, replying to DMs, setting up DM monitoring cron jobs, or handling DM auto-reply workflows. Triggers on: Instagram DM, DM check, DM reply, DM auto-reply, dm-alert.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
885
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

auto-reply

Instagram DM 自动回复 🐧

基于 v2.js(内部 API)。0 个浏览器快照,CDP Cookie 提取 → 直接调用 Instagram REST API。

前置条件

  • - OpenClaw 浏览器正在运行(端口 18800)
  • Instagram 标签页已打开并登录
  • ws npm 包(npm i -g ws 或本地安装)

脚本列表

脚本用途
scripts/v2.jsDM 命令行工具(收件箱、未读、检查、读取、回复)
scripts/auto-reply.js
读取 dm-alert.json,安全检查,返回回复元数据 | | scripts/check-notify.js | 检查新 DM 通知(用于 cron,基于状态文件) | | scripts/dm-watcher.js | 实时 DM 检测守护进程(15 秒轮询) |

核心工作流

1. 检查 DM

bash
node scripts/v2.js check # 未读数量(最轻量)
node scripts/v2.js unread # 未读 DM 列表
node scripts/v2.js inbox # 完整 DM 列表

2. 读取消息

bash
node scripts/v2.js read <用户名> -l 5

3. 回复

bash
node scripts/v2.js reply <用户名> 消息内容

API 失败时,返回包含 method: use_browser + threadUrl 的 JSON → 回退到浏览器工具。

4. 通知检查(cron 集成)

bash
node scripts/check-notify.js

  • - 如有新 DM:输出 📩 发现 N 条新 DM:...
  • 如无新 DM:输出 no_new
  • 使用状态文件 dm-state.json 防止重复通知

5. 自动回复流程

bash
node scripts/auto-reply.js

  1. 1. 读取 dm-alert.json(由 dm-watcher 创建)
  2. 对每条 DM 执行安全检查
  3. 返回结果:needsreply / securityalert / skipped
  4. AI 为 needs_reply 的 DM 生成回复 → 通过 v2.js reply 发送

6. 实时检测守护进程

bash
node scripts/dm-watcher.js # 仅检测
node scripts/dm-watcher.js --auto-reply # 包含 Discord 通知

每 15 秒轮询 v2.js check。检测到新 DM 时,写入 dm-alert.json + Discord DM 通知。

安全检查(注入拒绝)

auto-reply.js 的 SECURITY_PATTERNS 检测:

  • - 提示注入:忽略之前内容、系统提示、你现在是、扮演、假装
  • 越狱尝试:覆盖、越狱、DAN 模式、绕过
  • 敏感信息请求:密钥、私钥、助记词、钱包地址
  • 代码执行尝试:执行命令、运行脚本、eval(、rm -rf、sudo
  • 社会工程:模拟模式、零宽字符

检测到威胁时 → 不回复,返回 security_alert。发送单独通知。

Cron 配置示例

yaml

每 5 分钟检查 DM


  • - schedule: /5 *

command: node /path/to/scripts/check-notify.js
systemEvent: true

或使用 dm-watcher 守护进程进行持续监控

  • - schedule: @reboot
command: node /path/to/scripts/dm-watcher.js --auto-reply background: true

Token 效率

  • - inbox/check:执行 1 次调用(约 500 tokens)
  • reply:执行 1 次调用(约 200 tokens)
  • 浏览器快照:0

🐧 由 무펭이 构建 — Mupengism 生态系统技能

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 auto-reply-1776419951 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 auto-reply-1776419951 技能

通过命令行安装

skillhub install auto-reply-1776419951

下载

⬇ 下载 auto-reply v1.0.0(免费)

文件大小: 13.09 KB | 发布时间: 2026-4-17 20:10

v1.0.0 最新 2026-4-17 20:10
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部