/node-slackbot

Slackbot for node.js using RTM API.

Primary LanguageJavaScript

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