npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pigeonmuyz/openclaw-onebot

v1.0.9

Published

OneBot v11 protocol channel plugin for OpenClaw (QQ/Lagrange.Core/go-cqhttp) - Fork with whitelist & prefix filter

Downloads

541

Readme

openclaw-onebot

OpenClawOneBot v11 协议(QQ/Lagrange.Core、go-cqhttp 等)渠道插件。

Fork 说明:本项目 Fork 自 @kirigaya/openclaw-onebot,在原版基础上新增了消息过滤和用户导向会话功能。感谢原作者 LSTM-Kirigaya 的开源贡献。

npm version License: MIT Node.js TypeScript OpenClaw


与原版的差异

🧑 用户导向会话(非消息渠道导向)

原版中,群聊和私聊各自维护独立的 AI 上下文。本 Fork 以用户为中心:同一用户无论在群聊中 @bot 还是在私聊中发消息,都共享同一个 AI 对话上下文。

原版:群聊 A → 上下文 A    私聊 → 上下文 B    (互相隔离)
Fork:群聊 A → 上下文 User  私聊 → 上下文 User  (共享记忆)

回复仍然发送到正确位置——群消息回群,私聊回私聊。

🔒 消息过滤规则

| 场景 | 规则 | |------|------| | 群聊 | 白名单非空时,仅白名单用户 @bot 才处理;非白名单用户静默忽略 | | 私聊 | 白名单非空时,非白名单用户回复"权限不足";有前缀时消息必须以前缀开头 |

🔧 新增配置项

| 配置项 | 说明 | |--------|------| | privateMessagePrefix | 私聊消息前缀符号(如 /#),仅以此符号开头的私聊消息才处理 |

可通过 openclaw onebot setup 向导配置。


安装

openclaw plugins install @pigeonmuyz/openclaw-onebot
openclaw onebot setup

配置示例

{
  "channels": {
    "onebot": {
      "whitelistUserIds": [1193466151, 2575183654],
      "privateMessagePrefix": "/",
      "requireMention": true,
      "renderMarkdownToPlain": true,
      "longMessageMode": "normal",
      "longMessageThreshold": 300
    }
  }
}

功能

  • ✅ 私聊/群聊消息处理(用户导向共享上下文)
  • ✅ 群聊 @bot 触发回复(可配置)
  • ✅ 白名单 + 私聊前缀符号过滤
  • ✅ 自动获取引用上下文
  • ✅ 新成员入群欢迎
  • ✅ 自动合并转发长消息
  • ✅ 长消息生成图片(og_image 模式)
  • ✅ 支持文件、图像读取/上传
  • ✅ 通过 openclaw message send CLI 发送

使用

  1. 安装并配置(openclaw onebot setup
  2. 重启 Gateway:openclaw gateway restart
  3. 在 QQ 私聊或群聊中发消息(群聊需 @ 机器人)

参考

License

MIT © LSTM-Kirigaya (原版) / PigeonMuyz (Fork)