mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
34 lines
858 B
TypeScript
34 lines
858 B
TypeScript
import {
|
|
defineBundledChannelEntry,
|
|
loadBundledEntryExportSync,
|
|
type OpenClawPluginApi,
|
|
} from "openclaw/plugin-sdk/channel-entry-contract";
|
|
|
|
function registerQQBotFull(api: OpenClawPluginApi): void {
|
|
const register = loadBundledEntryExportSync<(api: OpenClawPluginApi) => void>(import.meta.url, {
|
|
specifier: "./api.js",
|
|
exportName: "registerQQBotFull",
|
|
});
|
|
register(api);
|
|
}
|
|
|
|
export default defineBundledChannelEntry({
|
|
id: "qqbot",
|
|
name: "QQ Bot",
|
|
description: "QQ Bot channel plugin",
|
|
importMetaUrl: import.meta.url,
|
|
plugin: {
|
|
specifier: "./channel-plugin-api.js",
|
|
exportName: "qqbotPlugin",
|
|
},
|
|
secrets: {
|
|
specifier: "./secret-contract-api.js",
|
|
exportName: "channelSecrets",
|
|
},
|
|
runtime: {
|
|
specifier: "./runtime-api.js",
|
|
exportName: "setQQBotRuntime",
|
|
},
|
|
registerFull: registerQQBotFull,
|
|
});
|