mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-09 15:35:17 +00:00
18 lines
522 B
TypeScript
18 lines
522 B
TypeScript
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/slack";
|
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/slack";
|
|
import { slackPlugin } from "./src/channel.js";
|
|
import { setSlackRuntime } from "./src/runtime.js";
|
|
|
|
const plugin = {
|
|
id: "slack",
|
|
name: "Slack",
|
|
description: "Slack channel plugin",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: OpenClawPluginApi) {
|
|
setSlackRuntime(api.runtime);
|
|
api.registerChannel({ plugin: slackPlugin });
|
|
},
|
|
};
|
|
|
|
export default plugin;
|