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,17 @@
const fbTemplate = require('claudia-bot-builder/lib/facebook/format-message')
const {send} = require('./common')
const run = (msg, recipient) => {
const reply = new fbTemplate.Text(`
So, you'd like to drink?
`)
.addQuickReply('YES!', 'YES')
.addQuickReply('No, not particulary', 'NO')
.get()
send(recipient.id, reply)
}
module.exports = {
keywords: ['drink', 'dring', 'water', 'gimmme'],
run,
}