You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 18, 2020. It is now read-only.
In nutshell, reply function is not part of event variable.
If you run botpress as standalone solution, reply will exist as a function, but if you run it through broad setup, reply will not be in a list of functions.
module.exports = function(bp) {
// Listens for a first message (this is a Regex)
// GET_STARTED is the first message you get on Facebook Messenger
bp.hear(/GET_STARTED|hello|hi|test|hey|holla/i, (event, next, x) => {
console.log("event:",event);
console.log("next:",next);
console.log("bp:",bp);
event.reply('#welcome') // See the file `content.yml` to see the block
})
// You can also pass a matcher object to better filter events
bp.hear({
type: /message|text/i,
text: /exit|bye|goodbye|quit|done|leave|stop/i
}, (event, next) => {
event.reply('#goodbye', {
// You can pass data to the UMM bloc!
reason: 'unknown'
})
})
}
The text was updated successfully, but these errors were encountered:
In nutshell, reply function is not part of event variable.
If you run botpress as standalone solution, reply will exist as a function, but if you run it through broad setup, reply will not be in a list of functions.
brood-kit-botpress index.ts:
botpress index.js:
The text was updated successfully, but these errors were encountered: