National Park of Minnesota

    bot-connector-facebook

    0.2.0 • Public • Published

    Bot Connector Facebook

    Build StatusJavaScript Style Guide

    Bot connector for facebook which can be used with thebot-worker-engine on AWS-Lambda

    Installation

    npm install bot-connector-facebook
    

    Usage

    const {
      lambda,
      normalize,
      response,
      userData 
    = require('bot-connector-facebook')
     
    const workers = require('./workers') // your bot specific workers
    const persistence = require('<persistence-layer>')
     
     
    const handler = (input) => {
      // handle the normalized input, i.e. with https://github.com/DieProduktMacher/bot-worker-engine
      orchestrate({input, workers, persistence, response, userData})
    }
     
    module.exports = {
      main: (event, _, callback) => {
        lambda.main(event, handler, normalize, callback)
      },
      verify: (event, _, callback) => {
        lambda.verify(event, callback)
      }
    }

    License

    MIT

    Install

    npm i bot-connector-facebook

    DownloadsWeekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • heitzerj.dpm
    • timmyjs.dpm
    • thomas.limp
    • antesberger