Kod:
https://github.com/Charca/bootbot
Kod:
'use strict';
const BootBot = require('bootbot');
const bot = new BootBot({
accessToken: 'FB_ACCESS_TOKEN',
verifyToken: 'FB_VERIFY_TOKEN',
appSecret: 'FB_APP_SECRET'
});
bot.on('message', (payload, chat) => {
const text = payload.message.text;
chat.say(`Echo: ${text}`);
});
bot.start();
[ame]https://www.youtube.com/watch?v=flYeg7Hdxzw&feature=youtu.be[/ame]
Son düzenleme: