README
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
- 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