melbot / src /pairing /pairing-messages.ts
amos-fernandes's picture
Upload 4501 files
3a65265 verified
import { formatCliCommand } from "../cli/command-format.js";
import type { PairingChannel } from "./pairing-store.js";
export function buildPairingReply(params: {
channel: PairingChannel;
idLine: string;
code: string;
}): string {
const { channel, idLine, code } = params;
return [
"Moltbot: access not configured.",
"",
idLine,
"",
`Pairing code: ${code}`,
"",
"Ask the bot owner to approve with:",
formatCliCommand(`moltbot pairing approve ${channel} <code>`),
].join("\n");
}