npm install slackbotSlackbot
========
Slackbot wrapper for slack.com
- https://github.com/shokai/node-slackbot
- https://www.npmjs.org/package/slackbot
% npm install slackbot
add slackbot integration and get token
- https://YOUR-TEAM.slack.com/services/new/slackbot
``javascript
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);
});
`
use sample.js
% SLACK_TEAM=teamname SLACK_TOKEN=a1b2cdef345 node sample.js "hello world"
% npm install
% npm test
# or
% npm run watch
1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)git commit -am 'Add some feature'
3. Commit your changes ()git push origin my-new-feature`)
4. Push to the branch (
5. Create new Pull Request