Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
idanh authored Dec 13, 2016
1 parent fc19428 commit 807746e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ Subscribe to events:
* MESSAGE_SENT (Callback: `function (message, userProfile) {}`)
* SUBSCRIBED (Callback: `function (response) {}`)
* UNSUBSCRIBED (Callback: `function (response) {}`)
* CONVERSATION_STARTED (Callback: `function (response) {}`)
* CONVERSATION_STARTED (Callback: `function (userProfile, onFinish) {}`)
* ERROR (Callback: `function (err) {}`)

**Example**
```js
bot.on(BotEvents.MESSAGE_RECEIVED, (message, response) => ... );
bot.on(BotEvents.MESSAGE_SENT, (message, userProfile) => ... );
bot.on(BotEvents.CONVERSATION_STARTED, (message, response) => ... );
bot.on(BotEvents.CONVERSATION_STARTED, (userProfile, onFinish) => ... );
bot.on(BotEvents.ERROR, err => ... );
bot.on(BotEvents.UNSUBSCRIBED, response => ... );
bot.on(BotEvents.SUBSCRIBED, response =>
Expand Down

0 comments on commit 807746e

Please sign in to comment.