
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
bottender-chatbase
Advanced tools
npm install bottender-chatbase
const { MessengerBot } = require('bottender');
const { createServer } = require('bottender/express');
const chatbaseMiddleware = require('bottender-chatbase/express');
const bot = new MessengerBot({
accessToken: '__FILL_YOUR_TOKEN_HERE__',
appSecret: '__FILL_YOUR_SECRET_HERE__',
});
bot.onEvent(async context => {
await context.sendText('Hello World');
});
const server = createServer(bot, {
verifyToken: '__FILL_YOUR_VERIFY_TOKEN_HERE__',
webhookMiddleware: chatbaseMiddleware(bot, {
apiKey: '__FILL_YOUR_CHATBASE_KEY_HERE__',
platform: 'Facebook',
}),
});
server.listen(5000, () => {
console.log('server is running on 5000 port...');
});
Supported server:
const chatbaseMiddleware = require('bottender-chatbase/express');
const chatbaseMiddleware = require('bottender-chatbase/koa');
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-chatbase
yarn
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.
MIT © Yoctol
FAQs
Middleware for using Chatbase with Bottender.
The npm package bottender-chatbase receives a total of 5 weekly downloads. As such, bottender-chatbase popularity was classified as not popular.
We found that bottender-chatbase demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.