Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextDirectBranch

Text Direct Branch pre-matches the text for bot name prefix. If matched on the direct pattern (name prefix) it runs the branch matcher on a clone of the message with the prefix removed, this allows conditions like is to operate on the body of the message, without failing due to a prefix.

Hierarchy

Implements

Indexable

[key: string]: any

Text Direct Branch pre-matches the text for bot name prefix. If matched on the direct pattern (name prefix) it runs the branch matcher on a clone of the message with the prefix removed, this allows conditions like is to operate on the body of the message, without failing due to a prefix.

Index

Constructors

constructor

Properties

callback

callback: ICallback

conditions

conditions: Conditions

force

force: boolean

id

id: string

Optional match

match: any

Optional matched

matched: undefined | false | true

processKey

processKey: ProcessKeys = "listen"

type

type: string

Methods

execute

matcher

  • matcher(msg: TextMessage): Promise<boolean | RegExpMatchArray | undefined>
  • Parameters

    Returns Promise<boolean | RegExpMatchArray | undefined>

Generated using TypeDoc