@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Function describeTrigger

    • Describe a Trigger as plain data, following the dispatcher's rules (matchTrigger): strings default to normalized equals, RegExps run on the raw body, predicates are opaque.

      Parameters

      Returns TriggerInfo

      describeTrigger({ pattern: 'factura', match: 'contains', scope: 'dm' }).label
      // → 'contains "factura" (dm only)'