- 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
19 lines
542 B
TypeScript
19 lines
542 B
TypeScript
import type { MoltbotPluginApi } from "moltbot/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "moltbot/plugin-sdk";
|
|
|
|
import { mattermostPlugin } from "./src/channel.js";
|
|
import { setMattermostRuntime } from "./src/runtime.js";
|
|
|
|
const plugin = {
|
|
id: "mattermost",
|
|
name: "Mattermost",
|
|
description: "Mattermost channel plugin",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: MoltbotPluginApi) {
|
|
setMattermostRuntime(api.runtime);
|
|
api.registerChannel({ plugin: mattermostPlugin });
|
|
},
|
|
};
|
|
|
|
export default plugin;
|