Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 435 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 435 Bytes

Awesome Slack

Minimalist wrapper for the Slack RTM API.

Work in progress.

To give it a try:

var slackClient = new AwesomeSlack('your api token');

slackClient.on('connectionOpen', function(){
  console.log('connection with Slack ready');
});
slackClient.on('messageReceived', function(messageData){
  console.log("Received: " + messageData);
});

slackClient.sendMessage('hello world', 'channel or group id')