openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
17 lines (16 loc) • 703 B
JavaScript
import { r as matchSlashCommandToken } from "./commands-registry.data-4VTf_jm9.mjs";
import { n as normalizeCommandBody } from "./commands-registry-normalize-BUPL-PYW.mjs";
import "./commands-registry-Dr2bNuzu.mjs";
//#region src/auto-reply/reply/btw-command.ts
const BTW_COMMAND_RE = /^\/btw(?::|\s|$)/i;
function isBtwRequestText(text, options) {
if (!text) return false;
const normalized = normalizeCommandBody(text, options).trim();
return BTW_COMMAND_RE.test(normalized);
}
function extractBtwQuestion(text, options) {
if (!text) return null;
return matchSlashCommandToken(normalizeCommandBody(text, options), "/btw");
}
//#endregion
export { isBtwRequestText as n, extractBtwQuestion as t };