openclaw/extensions/qq/index.ts
taki 9d036cae3a feat: add QQ channel plugin via NapCatQQ/OneBot v11
- Complete ChannelPlugin implementation for QQ messaging
- WebSocket client with auto-reconnect and heartbeat
- Support private chat and group messages
- OneBot v11 API wrapper (send, receive, group management)
- Onboarding wizard for CLI configuration
- Multi-account support
- 156 unit tests (accounts, client, api, send, monitor, normalize, connection)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 16:38:24 +08:00

29 lines
739 B
TypeScript

/**
* QQ Channel Plugin Entry Point
*
* This plugin provides QQ messaging support via NapCatQQ/OneBot v11 protocol.
*/
import type { MoltbotPluginApi } from "clawdbot/plugin-sdk";
import { emptyPluginConfigSchema } from "clawdbot/plugin-sdk";
import { qqPlugin } from "./src/channel.js";
import { setQQRuntime } from "./src/runtime.js";
const plugin = {
id: "qq",
name: "QQ",
description: "QQ channel plugin (via NapCatQQ/OneBot v11)",
configSchema: emptyPluginConfigSchema(),
register(api: MoltbotPluginApi): void {
// Inject runtime for access to logging, config, etc.
setQQRuntime(api.runtime);
// Register the channel plugin
api.registerChannel({ plugin: qqPlugin });
},
};
export default plugin;