- Replace all CLAWDBOT_* env vars with MOLTBOT_* - Replace all .clawdbot paths with .moltbot - Update daemon labels to bot.molt.* - Update plugin SDK imports to moltbot/plugin-sdk - Remove clawdbot bin alias from package.json - Preserve legacy compatibility in compat/legacy-names.ts
21 lines
579 B
TypeScript
21 lines
579 B
TypeScript
import type { MoltbotPluginApi } from "moltbot/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "moltbot/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: MoltbotPluginApi) {
|
|
setTwitchRuntime(api.runtime);
|
|
api.registerChannel({ plugin: twitchPlugin as any });
|
|
},
|
|
};
|
|
|
|
export default plugin;
|