Bottender Chatbase
Installation
npm install bottender-chatbase
Example
const MessengerBot = ;const createServer = ;const chatbaseMiddleware = ; const bot = accessToken: '__FILL_YOUR_TOKEN_HERE__' appSecret: '__FILL_YOUR_SECRET_HERE__'; bot; const server = ; server;
Server
Supported server:
- express
- koa
express
const chatbaseMiddleware = ;
koa
const chatbaseMiddleware = ;
Contributing
Pull Requests and issue reports are welcome. You can follow steps below to submit your pull requests:
Fork, then clone the repo:
git clone git@github.com:your-username/bottender-chatbase.git
Install the dependencies:
cd bottender-chatbaseyarn
Make sure the tests pass (including eslint, flow checks and jest tests):
yarn test
Make your changes and tests, and make sure the tests pass.
License
MIT © Yoctol