21 lines
723 B
TypeScript
21 lines
723 B
TypeScript
import type { ClawdbotPluginApi } from "clawdbot/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "clawdbot/plugin-sdk";
|
|
|
|
import { googlechatDock, googlechatPlugin } from "./src/channel.js";
|
|
import { handleGoogleChatWebhookRequest } from "./src/monitor.js";
|
|
import { setGoogleChatRuntime } from "./src/runtime.js";
|
|
|
|
const plugin = {
|
|
id: "googlechat",
|
|
name: "Google Chat",
|
|
description: "Clawdbot Google Chat channel plugin",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: ClawdbotPluginApi) {
|
|
setGoogleChatRuntime(api.runtime);
|
|
api.registerChannel({ plugin: googlechatPlugin, dock: googlechatDock });
|
|
api.registerHttpHandler(handleGoogleChatWebhookRequest);
|
|
},
|
|
};
|
|
|
|
export default plugin;
|