Posts

Showing posts with the label Bot

Bottender

Image
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 . Documentation You can find the Bottender documentation on the website. Getting Started Platforms Guides API Reference Examples 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 f...