Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
bottender
Advanced tools
[![npm](https://img.shields.io/npm/v/bottender.svg?style=flat-square)](https://www.npmjs.com/package/bottender) [![CircleCI](https://circleci.com/gh/Yoctol/bottender.svg?style=shield)](https://circleci.com/gh/Yoctol/bottender) [![coverage](https://codecov
Flexible - Declare handlers as any JavaScript function.
Modern - Source written with ES6/ES7 syntax and great async await supports.
Modular - Use session stores, server framework adapters and platform connectors with same interface.
Learn Once, Write Anywhere - Handle multiple platforms with consistent development experience.
Bottender is built on top of Messaging APIs.
You can find the Bottender documentation on the website.
We have a bunch of examples in the examples folder. Here is the first one to get you started:
const { ConsoleBot } = require('bottender');
const bot = new ConsoleBot();
bot.onEvent(async context => {
await context.sendText('Hello World');
});
bot.createRuntime();
This will create and run a bot which always reply "Hello World" in the console.
You'll notice that there is an async function to be passed to the onEvent
method, we call it handler. You can put your bot logic in there.
You can install Bottender globally to use the cli tools:
npm install -g bottender
Or install it locally to use it programmatically:
npm install bottender
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.git
Install the dependencies:
cd bottender
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
0.14.19 / 2018-01-25
--ngrok-port
when setting webhook #171. For example:bottender messenger webhook set --ngrok-port 1234
bottender telegram webhook set --ngrok-port 1234
bottender viber webhook set --ngrok-port 1234
FAQs
A framework for building conversational user interfaces.
The npm package bottender receives a total of 342 weekly downloads. As such, bottender popularity was classified as not popular.
We found that bottender demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.