mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-27 00:19:32 +00:00
11 lines
465 B
TypeScript
11 lines
465 B
TypeScript
// Line plugin module implements quick reply fallback behavior.
|
|
import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
|
|
export function buildLineQuickReplyFallbackText(labels: readonly string[] | undefined): string {
|
|
const normalized = normalizeStringEntries(labels ?? []).slice(0, 13);
|
|
if (normalized.length === 0) {
|
|
return "Choose an option.";
|
|
}
|
|
return `Options:\n${normalized.map((label) => `- ${label}`).join("\n")}`;
|
|
}
|