Skip to main content

Function: createSubscriptionFilter()

createSubscriptionFilter(subscribedNames, baseOptions?): ProcessOptions

Defined in: packages/core/src/pipeline/utils.ts:269

Subscription wrapper for ProcessOptions that filters events by bot name

Parameters

subscribedNames

readonly string[]

Names of bots to subscribe to

baseOptions?

ProcessOptions

Optional base ProcessOptions to merge with

Returns

ProcessOptions

ProcessOptions that filters events to only include subscribed bots