Skip to content

Commit

Permalink
addressing comments from @shanedewael
Browse files Browse the repository at this point in the history
  • Loading branch information
aoberoi committed Feb 15, 2019
1 parent 2f576da commit 503e793
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -10,12 +10,6 @@ So you want to build a Slack app with Node.js? We've got you covered. This packa
apps ridiculously easy. It helps you build on all aspects of the Slack platform, from dropping notifications in channels
to fully interactive bots.

## Requirements

This package supports Node v6 LTS and higher. It's highly recommended to use [the latest LTS version of
node](https://github.com/nodejs/Release#release-schedule), and the documentation is written using syntax and features
from that version.

## Installation

Use npm to install the package and save it to your `package.json`:
Expand Down Expand Up @@ -110,7 +104,7 @@ rtm.on('ready', async () => {

See the [guide](http://slackapi.github.io/node-slack-sdk/rtm_api) for more details.

## Posting a message with Incoming Webhooks
### Posting a message with Incoming Webhooks

[Incoming webhooks](https://api.slack.com/incoming-webhooks) are an easy way to send notifications
to a Slack channel with a minimum of setup. You'll need a webhook URL from a Slack app or a custom
Expand All @@ -131,6 +125,12 @@ webhook.send('Hello there', function(err, res) {
});
```

## Requirements

This package supports Node v6 LTS and higher. It's highly recommended to use [the latest LTS version of
node](https://github.com/nodejs/Release#release-schedule), and the documentation is written using syntax and features
from that version.

## Getting Help

If you get stuck, we're here to help. The following are the best ways to get assistance working through your issue:
Expand Down
6 changes: 3 additions & 3 deletions docs/_pages/rtm_client.md
Expand Up @@ -83,7 +83,7 @@ where your bot is a member. The client can handle message events using the `on('

```javascript
const { RTMClient } = require('@slack/client');
// SNIP: the initialization code shown above is skipped for brevity
// The initialization code shown above is skipped for brevity

rtm.on('message', (message) => {
// For structure of `message`, see https://api.slack.com/events/message
Expand Down Expand Up @@ -176,7 +176,7 @@ subtypes](https://api.slack.com/events/message#message_subtypes), just format th

```javascript
const { RTMClient } = require('@slack/client');
// SNIP: the initialization code shown above is skipped for brevity
// The initialization code shown above is skipped for brevity

rtm.on(`message::channel_name`, (event) => {
// For structure of `event`, see https://api.slack.com/events/message/channel_name
Expand All @@ -196,7 +196,7 @@ is a member and visible to its scopes) is communicated as an event as well. For

```javascript
const { RTMClient } = require('@slack/client');
// SNIP: the initialization code shown above is skipped for brevity
// The initialization code shown above is skipped for brevity

rtm.on('reaction_added', (event) => {
// For structure of `event`, see https://api.slack.com/events/reaction_added
Expand Down
12 changes: 6 additions & 6 deletions docs/index.md
Expand Up @@ -14,12 +14,6 @@ So you want to build a Slack app with Node.js? We've got you covered. {{ site.pr
building Slack apps ridiculously easy. It helps you build on all aspects of the Slack platform, from dropping
notifications in channels to fully interactive bots.

## Requirements

This package supports Node v6 LTS and higher. It's highly recommended to use [the latest LTS version of
node](https://github.com/nodejs/Release#release-schedule), and the documentation is written using syntax and features
from that version.

## Installation

Use npm to install the package and save it to your `package.json`:
Expand Down Expand Up @@ -59,6 +53,12 @@ If you're looking for an all-in-one solution that hides the underlying Slack API
app inside Slack, try the [Hubot Slack adapter](https://slackapi.github.io/hubot-slack/). This framework is popular for
internal apps that automate workflows, perform ChatOps, or just generate silly memes.

## Requirements

This package supports Node v6 LTS and higher. It's highly recommended to use [the latest LTS version of
node](https://github.com/nodejs/Release#release-schedule), and the documentation is written using syntax and features
from that version.

## Getting Help

If you get stuck, we're here to help. The following are the best ways to get assistance working through your issue:
Expand Down

0 comments on commit 503e793

Please sign in to comment.