Closed enriquebrgn closed 6 years ago
Does this help?
const utterances = {
hello: /GET_STARTED|hello|hi|hey|holla|hej|god dag|halløj/i
}
bp.hear(utterances.hello, (event, next) => {
event.reply("#welcome");
});
Oh didn't saw this issue before I fixed it, I had the same need so I did a pull request, the feature is available in botpress 1.1.2. Check the docs to see how ^^ If it suits your need I think this issue can be closed :)
Closing as Olivier fixed this :)
Thanks!
Hey there!
Is there any way to add array support for the bp.hear() method? I want to match some item inside the array to avoid creating multiple functions with the same content for matching different messages.
Thanks a lot, botpress is awesome!