https://github.com/karan/slack-hn
SEE https://github.com/karan/slack-news INSTEAD
https://github.com/karan/slack-hn
Last synced: 9 months ago
JSON representation
SEE https://github.com/karan/slack-news INSTEAD
- Host: GitHub
- URL: https://github.com/karan/slack-hn
- Owner: karan
- License: mit
- Created: 2015-02-26T23:41:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-09T03:32:40.000Z (over 9 years ago)
- Last Synced: 2025-04-04T23:29:50.529Z (9 months ago)
- Language: JavaScript
- Homepage: https://github.com/karan/slack-news
- Size: 133 KB
- Stars: 37
- Watchers: 2
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**SEE https://github.com/karan/slack-news INSTEAD**
slack-hn
========
Read Hacker News right from Slack just typing `/hn`.

## Usage
From any Slack channel, just type `/hn`. The posts will be shown on the same channel.
## 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`

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.

- Set a new environment variable called `SLACK_WEBHOOK_URL`.
```bash
# Unux systems (AWS etc)
$ export SLACK_WEBHOOK_URL=
# Heroku
$ heroku config:set SLACK_WEBHOOK_URL=
```
#### (Optional) Setup your own server
Although the code is hosted at `http://slack-hn.herokuapp.com/`, you are free to setup your own instance.
Make sure to change the **Slash Command** URL to whatever your URL is.
##### Heroku
[](https://heroku.com/deploy?template=https://github.com/karan/slack-hn/tree/master)
And then:
```bash
$ heroku config:set SLACK_WEBHOOK_URL=
```
##### Other servers
```bash
$ git clone git@github.com:karan/slack-hn.git
$ cd slack-hn
$ npm install
$ export SLACK_WEBHOOK_URL=
$ node app.js
```
## Contributing
- Please use the [issue tracker]() to report any bugs or file feature requests.
- PRs are welcome.