This commit is contained in:
sliverp
2026-01-28 17:36:53 +08:00
parent 9a531cd6eb
commit 6154e4f9e1
5 changed files with 154 additions and 46 deletions

View File

@@ -1,13 +1,21 @@
import type { MoltbotPluginApi } from "clawdbot/plugin-sdk";
import { qqbotPlugin } from "./src/channel.js";
import { setQQBotRuntime } from "./src/runtime.js";
export default {
const plugin = {
id: "qqbot",
name: "QQ Bot",
description: "QQ Bot channel plugin",
register(api: MoltbotPluginApi) {
setQQBotRuntime(api.runtime);
api.registerChannel({ plugin: qqbotPlugin });
},
};
export default plugin;
export { qqbotPlugin } from "./src/channel.js";
export { setQQBotRuntime, getQQBotRuntime } from "./src/runtime.js";
export * from "./src/types.js";
export * from "./src/api.js";
export * from "./src/config.js";