22 lines
629 B
TypeScript
22 lines
629 B
TypeScript
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
|
|
|
import { linePlugin } from "./src/channel.js";
|
|
import { registerLineCardCommand } from "./src/card-command.js";
|
|
import { setLineRuntime } from "./src/runtime.js";
|
|
|
|
const plugin = {
|
|
id: "line",
|
|
name: "LINE",
|
|
description: "LINE Messaging API channel plugin",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: OpenClawPluginApi) {
|
|
setLineRuntime(api.runtime);
|
|
api.registerChannel({
|
|
plugin: linePlugin
|
|
});
|
|
registerLineCardCommand(api);
|
|
},
|
|
};
|
|
|
|
export default plugin; |