karan / slack-news

Read news from multiple sources within Slack by just typing /news.
http://git.io/news
MIT License
123 stars 15 forks source link

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

Deploy

And then:

$ heroku config:set SLACK_WEBHOOK_URL=<URL>
$ heroku config:set PH_TOKEN=<PRODUCTHUNT TOKEN>
Other servers
$ git clone git@github.com:karan/slack-news.git
$ cd slack-news
$ npm install
$ export SLACK_WEBHOOK_URL=<URL>
$ export PH_TOKEN=<PRODUCTHUNT 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

Add a new slash command with the following settings:

All other settings can be set on your own discretion.

Set up a new incoming webhook

Click on Add next to Incoming WebHooks.

Contributing