Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextBranch

Text branch uses basic regex matching

Hierarchy

Implements

Indexable

[key: string]: any

Text branch uses basic regex matching

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: Message): Promise<boolean | RegExpMatchArray | undefined>
  • Match message text against regex or composite conditions. Resolves with either single match result or cumulative condition success.

    Parameters

    Returns Promise<boolean | RegExpMatchArray | undefined>

Generated using TypeDoc