Skip to content

rmcdaniel/node-slackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Slackbot for node.js using RTM API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published