Add KakaoWork Bot API integration for Korea-focused enterprise messaging. - Support for DM conversations via KakaoWork Web API - Reactive callback handling for user interactions - Multi-account configuration support - Pairing-based DM access control - Rate limit aware (200 req/min) Contributed-by: Hanish Keloth <hanishkeloth@users.noreply.github.com>
21 lines
675 B
TypeScript
21 lines
675 B
TypeScript
import type { MoltbotPluginApi } from "clawdbot/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "clawdbot/plugin-sdk";
|
|
|
|
import { kakaoDock, kakaoPlugin } from "./src/channel.js";
|
|
import { handleKakaoCallbackRequest } from "./src/monitor.js";
|
|
import { setKakaoRuntime } from "./src/runtime.js";
|
|
|
|
const plugin = {
|
|
id: "kakao",
|
|
name: "KakaoWork",
|
|
description: "KakaoWork channel plugin (Bot API)",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: MoltbotPluginApi) {
|
|
setKakaoRuntime(api.runtime);
|
|
api.registerChannel({ plugin: kakaoPlugin, dock: kakaoDock });
|
|
api.registerHttpHandler(handleKakaoCallbackRequest);
|
|
},
|
|
};
|
|
|
|
export default plugin;
|