1.2.4 • Published 9 years ago

pretty-slack v1.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Pretty-Slack

Use this to post pretty messages to Slack using their API.

Usage

npm install pretty-slack

    var PrettySlack = require('pretty-slack');
    var slack = new PrettySlack('<YOUR-API-KEY>');

    slack.chat('#<channel>', '<message>', {attachments}, function(err, posted, resp){
      console.log(err, posted, resp);
    });
  • channel: the channel you want to post to
  • message: a string to post to the channel (can be an empty string)
  • options: an object with optional attachments for Slack. This follows the same convention as Slack's documentation
  • callback: the function signature should be of the form of (err, posted, response) where err is the standard error of the request, posted is a boolean response from Slack if your message was successfully posted, and response is the body of the response from the Slack API.
1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago