Files
clawdbot/src/pairing/pairing-messages.ts
2026-01-20 07:43:00 +00:00

21 lines
526 B
TypeScript

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 [
"Clawdbot: access not configured.",
"",
idLine,
"",
`Pairing code: ${code}`,
"",
"Ask the bot owner to approve with:",
formatCliCommand(`clawdbot pairing approve ${channel} <code>`),
].join("\n");
}