micro-messenger

0.1.0 • Public • Published

Build Status Coverage NPM version Greenkeeper badge

micro-messenger

Run your Facebook Messenger bot on Micro

Installation

$ npm install --save micro-messenger

Usage

module.exports = require('micro-messenger')()
  .use(
 
    // add `messenger-core` plugins
    // and/or your own:
 
    async (message, context) => {
      if (context.topic === 'postback.GET_STARTED') {
 
        // do things you want to do upon a GET_STARTED postback
 
      }
    }
 
  )
  .else(async (req, res) => {
 
    // do other amazing webhook things
 
  })
 

License

MIT © Andreas Pizsa

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.00

Package Sidebar

Install

npm i micro-messenger

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • andreaspizsa