1
0

Separate intents to separate modules

This commit is contained in:
2018-04-22 22:02:53 +02:00
parent 0f1d9e7f39
commit b3bc949e01
7 changed files with 92 additions and 50 deletions

View File

@@ -0,0 +1,14 @@
const fbTemplate = require('claudia-bot-builder/lib/facebook/format-message')
const {send} = require('./common')
const run = (msg, recipient) => {
const reply = new fbTemplate.Text(`
This is your menu. You can reach it by writing Menu, or Help, or Start
`).get()
send(recipient.id, reply)
}
module.exports = {
keywords: ['start', 'menu', 'help'],
run,
}