mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-16 12:30:49 +00:00
21 lines
527 B
TypeScript
21 lines
527 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 [
|
|
"OpenClaw: access not configured.",
|
|
"",
|
|
idLine,
|
|
"",
|
|
`Pairing code: ${code}`,
|
|
"",
|
|
"Ask the bot owner to approve with:",
|
|
formatCliCommand(`openclaw pairing approve ${channel} ${code}`),
|
|
].join("\n");
|
|
}
|