Separate intents to separate modules
This commit is contained in:
16
bot/facebook/intents/default.js
Normal file
16
bot/facebook/intents/default.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const fbTemplate = require('claudia-bot-builder/lib/facebook/format-message')
|
||||
const {send} = require('./common')
|
||||
|
||||
const run = (msg, recipient) => {
|
||||
const reply = new fbTemplate.Text(
|
||||
`Sorry, ${
|
||||
recipient.first_name
|
||||
}. I am a young Bot and still learning. Type "Start" to show the start over.`
|
||||
).get()
|
||||
send(recipient.id, reply)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
keywords: [],
|
||||
run,
|
||||
}
|
||||
Reference in New Issue
Block a user