Node.js Slack Client Library
Travis-CI Build Status
Description
This is the beta Slack client 2.0.0 library for node.js, it:
Beta Status
Please note that this client is a complete rewrite of the 1.5.1 slack-client library.
It's still under active development, so issues and PRs are very welcome.
There are likely still a number of bugs to address in this release before it's ready for a full 2.0.0, so use with caution!
Installation
npm install slack-client@2.0.0-beta.6 --save
Usage
var RtmClient = require('slack-client').RtmClient;
var token = process.env.SLACK_API_TOKEN || '';
var rtm = new RtmClient(token, {logLevel: 'debug'});
rtm.start();
rtm.on('message', function(message) {
console.log(message);
});
A full example of how to use this module from Node.js can be found in the /examples directory.
Contribute
Here's the most direct way to get your work merged into the project.
- Fork the project
- Clone down your fork
- Create a feature branch
- Hack away and add tests, not necessarily in that order
- Make sure everything still passes by running tests
- If necessary, rebase your commits into logical chunks without errors
- Add yourself to package.json as a contributor
- Push the branch up to your fork
- Send a pull request for your branch
Copyright
Copyright © Slack Technologies, Inc. MIT License; see LICENSE for further details.