slackbot
v0.0.2
Published
slackbot wrapper for slack.com
Downloads
311
Readme
Slackbot
Slackbot wrapper for slack.com
- https://github.com/shokai/node-slackbot
- https://www.npmjs.org/package/slackbot
Install
% npm install slackbot
Get Token
add slackbot integration and get token
- https://YOUR-TEAM.slack.com/services/new/slackbot
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request