Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcardeenas committed Jun 10, 2019
1 parent 89c2d62 commit 96cba56
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ import { create } from 'sulla';
create().then(client => start(client));

function start(client) {
create().then(client => {
client.onMessage(message => {
if (message.body === 'Hi') {
client.sendText(message.from, 'πŸ‘‹ Hello from sulla!');
}
});
client.onMessage(message => {
if (message.body === 'Hi') {
client.sendText(message.from, 'πŸ‘‹ Hello from sulla!');
}
});
}
```

0 comments on commit 96cba56

Please sign in to comment.