Open BenAlderfer opened 4 years ago
Seconding this - especially when trying to make bots more conversational, passing multiple messages to trigger on would be wonderful.
As the list of the middleware is also an array, supporting an array of string | regexp is not so simple.
Description
In the docs, there seems to only be support for a single pattern to match and then do an action:
I'd like to be able to supply multiple patterns to match different ways of saying the same command without having to duplicate that block of code. See other chatbots like Alexa where you supply many invocations for a single command.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)