From cad75f6c00a9dd01bda74fd973551756a805d645 Mon Sep 17 00:00:00 2001 From: Daniel Cardenas Date: Mon, 10 Jun 2019 09:18:49 -0500 Subject: [PATCH] Update README.md --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b56e5387..b3daef59 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,24 @@ -# 🤖sulla +# 🤖 sulla Javascript whatsapp framework (web whatsapp driver) + +## Instalation + +```bash +> npm i sulla +``` +## Usage + +```javascript +import { init } from 'sulla'; + +init().then(client => start(client)); + +function start(client) { + client.onMessage().subscribe(message => { + if (message.body === 'Hi') { + client.sendText(message.from, '👋 Hello from sulla!'); + } + }); +} + +```