1.0.2 • Published 3 years ago
@notekunn/ezbot v1.0.2
EZ BOT - MAKE BOT EASIER
Package sample GitHub - Charca/bootbot: Facebook Messenger Bot Framework for Node.js for personal bot
npm i --save @notekunn/ezbot
const EzBot = require('@notekunn/ezbot');
const config = require('config');
const path = require('path');
const bot = new EzBot({
email: config.get('email'),
password: config.get('password'),
appStatePath: path.resolve(__dirname, '../appstate.json'),
});
bot.on('message', (payload, chat) => {
const text = payload.body;
chat.say(`Echo: ${text}`);
});
bot.start();