You can create a SimpleX Chat chat-bot with 17 lines of JS code using the new Node.js library image Beta version: https://npmjs.com/package/simplex-chat/v/6.5.0-beta.4.4 Source code: To run this example with Node.js: npm i simplex-chat@6.5.0-beta.4.4 node ./node_modules/simplex-chat/examples/squaring-bot-readme.js

Replies (4)

Default avatar
Joey 3 weeks ago
15 lines* Fun fact: The IIFE is no longer necessary as top-level `await` was introduced in the ES2022 spec 🙂