Skip to content

Commit

Permalink
readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
primaryobjects committed Mar 16, 2016
1 parent 4e74a8a commit 70c948a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file added images/chatskills-slack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ while (text.length > 0 && text != 'quit') {

## Reading from Slack

You don't have to use just the console! You can run your chatbot anywhere, like Slack.
You don't have to use just the console! You can run your chatbot anywhere, like Slack. See [here](https://gist.github.com/primaryobjects/e1a182c7ef2f8d33731e) for full example.

![Chatskills running on Slack](https://raw.githubusercontent.com/primaryobjects/chatskills/master/images/chatskills-slack.png)

```javascript
var SlackBot = require('slackbots')
var bot = new SlackBot({ token: token, name: 'MyAwesomeBot' });
var SlackBot = require('slackbots');
var bot = new SlackBot({ token: token, name: 'awesome' });

// Listen to slack messages.
bot.on('message', function(message) {
Expand Down

0 comments on commit 70c948a

Please sign in to comment.