Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/messengerjs/micro-messenger
Ⓜ️ Run your Facebook Messenger bot on zeit’s Micro
https://github.com/messengerjs/micro-messenger
facebook-messenger facebook-messenger-bot facebook-messenger-platform messenger messenger-bot messenger-chatbots messenger-platform micro
Last synced: 5 days ago
JSON representation
Ⓜ️ Run your Facebook Messenger bot on zeit’s Micro
- Host: GitHub
- URL: https://github.com/messengerjs/micro-messenger
- Owner: messengerjs
- License: mit
- Created: 2017-10-12T17:48:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-24T17:55:54.000Z (about 7 years ago)
- Last Synced: 2024-12-24T16:37:43.775Z (10 days ago)
- Topics: facebook-messenger, facebook-messenger-bot, facebook-messenger-platform, messenger, messenger-bot, messenger-chatbots, messenger-platform, micro
- Language: JavaScript
- Homepage:
- Size: 123 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
![Build Status](https://img.shields.io/travis/AndreasPizsa/micro-messenger.svg?style=flat-square) ![Coverage](https://img.shields.io/codecov/c/github/AndreasPizsa/micro-messenger.svg?style=flat-square) [![NPM version](https://img.shields.io/npm/v/micro-messenger.svg?style=flat-square)](https://npmjs.org/package/messenger-core) [![Greenkeeper badge](https://badges.greenkeeper.io/AndreasPizsa/micro-messenger.svg)](https://greenkeeper.io/)
# micro-messenger
> Run your Facebook Messenger bot on Micro
## Installation
```sh
$ npm install --save micro-messenger
```## Usage
```js
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](https://github.com/AndreasPizsa)