mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
20 lines
616 B
TypeScript
20 lines
616 B
TypeScript
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
|
import { registerLineCardCommand } from "./src/card-command.js";
|
|
import { linePlugin } from "./src/channel.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;
|