Skip to content

Commit

Permalink
Merge readme
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcardeenas committed Jun 10, 2019
2 parents ee56179 + cad75f6 commit 3df4434
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +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!');
}
});
}

```

0 comments on commit 3df4434

Please sign in to comment.