slackbot

0.0.2 • Public • Published

Slackbot

Slackbot wrapper for slack.com

Install

% npm install slackbot

Get Token

add slackbot integration and get token

Usage

var Slackbot = require('slackbot')
 
var slackbot = new Slackbot('YOUR-TEAM', 'YOUR-TOKEN');
 
slackbot.send("#general", "hello!!", function(err, res, body) {
  if(err) return;
  console.log(body);
});

Sample

use sample.js

% SLACK_TEAM=teamname SLACK_TOKEN=a1b2cdef345 node sample.js "hello world"

Develop

% npm install

% npm test
# or
% npm run watch

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Readme

Keywords

Package Sidebar

Install

npm i slackbot

Weekly Downloads

66

Version

0.0.2

License

MIT

Last publish

Collaborators

  • shokai