<commit_before>slack-hn
========

Show current Hacker News homepage

////GIF/////

## Install

Add a new slash command with the following settings:
Command: /roll
URL: http://yourhost.com/roll
Method: get
Label: roll dice!

Set up a new incoming webhook
Choose a channel to integrate with (this doesn't matter -- it'll always respond to the channel you called it from)
Get your token from this page (this is what you'll use when you launch the server)

Set env var `SLACK_WEBHOOK_URL`.<commit_msg>update readme with detailed installation instructions<commit_after>slack-hn
========

Read Hacker News right from Slack just typing `/hn`.

////GIF/////

## Installation

- Go to your channel
- Click on **Configure Integrations**.
- Scroll all the way down to **DIY Integrations & Customizations** section.

#### Add a new slash command with the following settings:

- Click on **Add** next to **Slash Commands**.

  - Command: `/hn`
  - URL: `http://slack-hn.herokuapp.com/hn`
  - Method: `GET`

![](http://i.imgur.com/vNL3MCk.png)

All other settings can be set on your own discretion.

#### Set up a new incoming webhook

- Click on **Add** next to **Incoming WebHooks**.

  - Choose a channel to integrate with (this doesn't matter -- it'll always respond to the channel you called it from)
  - Note the new Webhook URL.

![](http://i.imgur.com/JRJ92xj.png)

Set a new environment variable called `SLACK_WEBHOOK_URL`.

```bash
# Unux systems (AWS etc)
export SLACK_WEBHOOK_URL=<URL>

# Heroku
heroku config:set SLACK_WEBHOOK_URL=<URL>
```

## Contributing

- Please use the [issue tracker]() to report any bugs or file feature requests.

- PRs are welcome.
{'fraction_non_alphanumeric': 0.12130356065178033, 'fraction_numerical': 0.0018105009052504525, 'mean_word_length': 3.8338192419825075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5719739', 'n_tokens_mistral': 538, 'n_tokens_neox': 511, 'n_words': 211}