Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixes a bad require for RTM Client Events
  • Loading branch information
Leah Jones authored and Leah Jones committed Feb 13, 2016
1 parent 27b52f2 commit 6d7532a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ rtm.on(RTM_EVENTS.CHANNEL_CREATED, function (message) {

```js

var RTM_CLIENT_EVENTS = require('slack-client').EVENTS.CLIENT.RTM;
var RTM_CLIENT_EVENTS = require('slack-client').CLIENT_EVENTS.RTM;

// you need to wait for the client to fully connect before you can send messages
rtm.on(RTM_CLIENT_EVENTS.RTM_CONNECTION_OPENED, function () {
Expand Down

0 comments on commit 6d7532a

Please sign in to comment.