Slackbot for node.js using RTM API.
Switch branches/tags
Nothing to show
Clone or download
Latest commit e222948 Aug 12, 2017
Permalink
Failed to load latest commit information.
lib Update slackbot.js Aug 12, 2017
test add first test Dec 17, 2014
.gitignore first commit Dec 17, 2014
.jshintrc first commit Dec 17, 2014
.travis.yml first commit Dec 17, 2014
.yo-rc.json first commit Dec 17, 2014
Gruntfile.js first commit Dec 17, 2014
README.md update readme Dec 17, 2014
package.json Update package.json Aug 12, 2017

README.md

Build Status

Slackbot for node.js using RTM API.

Install

$ npm install --save node-slackbot

Usage

var slackbot = require('node-slackbot');

var bot = new slackbot('token_goes_here');

bot.use(function(message, cb) {
  if ('message' == message.type) {
    console.log(message.user + ' said: ' + message.text);
  }
  cb();
});

bot.connect();

License

MIT © Richard McDaniel