- Add channel documentation (EN + 中文) and plugin README - Link WeCom from channels index - 新增 WeCom 渠道插件(国内常用) - 新增频道文档(英文 + 中文)与插件 README - 在 Channels 索引中加入 WeCom 入口
24 lines
697 B
TypeScript
24 lines
697 B
TypeScript
/**
|
|
* Author: YanHaidao
|
|
*/
|
|
import type { ClawdbotPluginApi } from "clawdbot/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "clawdbot/plugin-sdk";
|
|
|
|
import { handleWecomWebhookRequest } from "./src/monitor.js";
|
|
import { setWecomRuntime } from "./src/runtime.js";
|
|
import { wecomPlugin } from "./src/channel.js";
|
|
|
|
const plugin = {
|
|
id: "wecom",
|
|
name: "WeCom",
|
|
description: "Clawdbot WeCom (WeChat Work) intelligent bot channel plugin",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: ClawdbotPluginApi) {
|
|
setWecomRuntime(api.runtime);
|
|
api.registerChannel({ plugin: wecomPlugin });
|
|
api.registerHttpHandler(handleWecomWebhookRequest);
|
|
},
|
|
};
|
|
|
|
export default plugin;
|