mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
21 lines
641 B
TypeScript
21 lines
641 B
TypeScript
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
|
import { twitchPlugin } from "./src/plugin.js";
|
|
import { setTwitchRuntime } from "./src/runtime.js";
|
|
|
|
export { monitorTwitchProvider } from "./src/monitor.js";
|
|
|
|
const plugin = {
|
|
id: "twitch",
|
|
name: "Twitch",
|
|
description: "Twitch channel plugin",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: OpenClawPluginApi) {
|
|
setTwitchRuntime(api.runtime);
|
|
// oxlint-disable-next-line typescript/no-explicit-any
|
|
api.registerChannel({ plugin: twitchPlugin as any });
|
|
},
|
|
};
|
|
|
|
export default plugin;
|