- 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>
29 lines
739 B
TypeScript
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;
|