返回顶部
o

openqq

QQ bot integration for OpenClaw with session isolation, logging, and AI auto-reply. Supports private chat and group @messages.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.5
安全检测
已通过
851
下载量
0
收藏
概述
安装方式
版本历史

openqq

# OpenQQ Bot QQ bot integration for OpenClaw. Enables AI auto-reply for QQ private chats and group @mentions with session isolation and comprehensive logging. ## Quick Start ```bash # Initialize config npm run setup # Install dependencies npm install # Edit config vim ~/.openclaw/workspace/open-qq-config.json # Start bot npm start ``` ## Configuration Edit `~/.openclaw/workspace/open-qq-config.json`: ```json { "qq": { "appId": "YOUR_APP_ID", "token": "YOUR_TOKEN", "appSecret": "YOUR_APP_SECRET" } } ``` Get credentials from [QQ Open Platform](https://bot.q.qq.com/). ## Usage ```bash npm start # Start bot npm run health # Health check npm run logs # View today's logs npm run status # Check running status ``` ## Features - **Session Isolation**: Each user/group has independent conversation history - Private: `qq-private-{user_openid}` - Group: `qq-group-{group_openid}` - **Comprehensive Logging**: China timezone, log rotation, sensitive data filtering - **Auto Reconnect**: WebSocket auto-reconnect with heartbeat - **Message Retry**: Auto-retry failed messages (up to 2 times) - **Graceful Shutdown**: Clean shutdown on SIGTERM/SIGINT ## Files | File | Description | |------|-------------| | `qq-bot.js` | Main program (WebSocket + OpenClaw integration) | | `logger.js` | Logging system (China timezone + rotation) | | `scripts/health-check.sh` | Health check script | | `package.json` | Dependencies (axios, ws) | ## npm Commands | Command | Description | |---------|-------------| | `npm start` | Start bot | | `npm run health` | Health check | | `npm run logs` | View logs | | `npm run setup` | Initialize config | | `npm run status` | Check status | | `npm run clean` | Clean node_modules | ## Security - Do not commit `open-qq-config.json` to version control - Set permissions: `chmod 600 ~/.openclaw/workspace/open-qq-config.json` - Uses `spawn` instead of `exec` to prevent command injection - Session IDs are whitelisted (alphanumeric + hyphen only) ## Troubleshooting | Issue | Solution | |-------|----------| | Config not found | Run `npm run setup` | | Missing credentials | Edit config file with appId/token/appSecret | | WebSocket failed | Check Token and network | | No reply | Test with `openclaw agent --message "test"` | ## Changelog See [CHANGELOG.md](CHANGELOG.md) ### v0.0.3 (Latest) - 7 new npm commands - FAQ section - Message retry mechanism - Graceful shutdown ## License MIT License ## Links - [ClawHub](https://clawhub.com/skills/openqq) - [QQ Open Platform](https://bot.q.qq.com/) - [OpenClaw Docs](https://docs.openclaw.ai/)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openqq-1776299475 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openqq-1776299475 技能

通过命令行安装

skillhub install openqq-1776299475

下载 Zip 包

⬇ 下载 openqq v0.0.5

文件大小: 17.89 KB | 发布时间: 2026-4-16 17:41

v0.0.5 最新 2026-4-16 17:41
- Initial public release with full source code and dependencies.
- Added configuration samples, health check script, and npm command instructions.
- Supports session isolation for private and group chats.
- Provides logging and AI auto-reply for QQ chats.
- English documentation streamlining all usage and setup information.

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

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

p2p_official_large
返回顶部