openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 569 B
JavaScript
import{i as matchSlashCommandToken}from"./commands-registry.data-IaSrmBM9.mjs";import{n as normalizeCommandBody}from"./commands-registry-normalize-yxTxMnHJ.mjs";import"./commands-registry-Dh5K81S2.mjs";
//!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`)}export{isBtwRequestText as n,extractBtwQuestion as t};