mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-24 07:01:49 +00:00
25 lines
540 B
TypeScript
25 lines
540 B
TypeScript
import type { ChannelPlugin } from "../channels/plugins/types.js";
|
|
|
|
export function makeDirectPlugin(params: {
|
|
id: string;
|
|
label: string;
|
|
docsPath: string;
|
|
config: ChannelPlugin["config"];
|
|
}): ChannelPlugin {
|
|
return {
|
|
id: params.id,
|
|
meta: {
|
|
id: params.id,
|
|
label: params.label,
|
|
selectionLabel: params.label,
|
|
docsPath: params.docsPath,
|
|
blurb: "test",
|
|
},
|
|
capabilities: { chatTypes: ["direct"] },
|
|
config: params.config,
|
|
actions: {
|
|
listActions: () => ["send"],
|
|
},
|
|
};
|
|
}
|