Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karan/slack-news
Read news from multiple sources within Slack by just typing /news.
https://github.com/karan/slack-news
Last synced: 3 months ago
JSON representation
Read news from multiple sources within Slack by just typing /news.
- Host: GitHub
- URL: https://github.com/karan/slack-news
- Owner: karan
- License: mit
- Created: 2015-03-04T17:26:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-04T08:38:39.000Z (over 9 years ago)
- Last Synced: 2024-05-22T22:31:33.259Z (9 months ago)
- Language: JavaScript
- Homepage: http://git.io/news
- Size: 273 KB
- Stars: 123
- Watchers: 4
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
slack-news
========Read news from multiple sources within Slack by just typing `/news`.

## Usage
From any Slack channel, just type `/news [source]`. The news will be shown on the same channel.
#### Default sources
1. Hackers News (`/news hn`)
2. Product Hunt (`/news ph`)## Installation
### Setup your own server
Make sure to change the **Slash Command** URL to whatever your URL is.
##### Heroku
[](https://heroku.com/deploy?template=https://github.com/karan/slack-news/tree/master)
And then:
```bash
$ heroku config:set SLACK_WEBHOOK_URL=
$ heroku config:set PH_TOKEN=
```##### Other servers
```bash
$ git clone [email protected]:karan/slack-news.git
$ cd slack-news
$ npm install
$ export SLACK_WEBHOOK_URL=
$ export PH_TOKEN=
$ node app.js
```##### Notes
1. `SLACK_WEBHOOK_URL` will be found after setting up Incoming WebHooks. (See below)
2. Retrieve Product Hunt token from https://www.producthunt.com/v1/oauth/applications### Setup Integration
- 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: `/news`
- URL: `http://YOUR-URL.com/news`
- 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.
## Contributing
- Please use the [issue tracker]() to report any bugs or file feature requests.
- PRs to add new sources are welcome. Please make sure to test each source you add and try to follow the coding style.