matchPrefixes

Description

Match when the message starts with any of the provided keywords. Removes the matching keyword from the Context content

Example

matchPrefixes("Hi", "Hello", "Hola")

// Matching: "Hi"
// Matching: "Hello"
// Matching: "Hola"
// Not matching: "Goodbye"

Usage

matchPrefixes(keywords)

Parameters

keywords:
string[]