UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) • 637 B
import "./commands-registry-CwAxsNJ9.mjs"; import { i as matchSlashCommandToken } from "./commands-registry.data-CoxL3Db3.mjs"; import { n as normalizeCommandBody } from "./commands-registry-normalize-dI3NYF5y.mjs"; //#region src/auto-reply/reply/btw-command.ts const BTW_COMMAND_RE = /^\/btw(?::|\s|$)/i; function isBtwRequestText(e, t) { if (!e) return false; const n = normalizeCommandBody(e, t).trim(); return BTW_COMMAND_RE.test(n); } function extractBtwQuestion(e) { if (!e) return null; return matchSlashCommandToken(normalizeCommandBody(e), "/btw"); } //#endregion export { isBtwRequestText as n, extractBtwQuestion as t };