Files
openclaw/extensions/qqbot/index.ts

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,
});