Read news from multiple sources within Slack by just typing /news
.
From any Slack channel, just type /news [source]
. The news will be shown on the same channel.
/news hn
)/news ph
)Make sure to change the Slash Command URL to whatever your URL is.
And then:
$ heroku config:set SLACK_WEBHOOK_URL=<URL>
$ heroku config:set PH_TOKEN=<PRODUCTHUNT TOKEN>
$ 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
SLACK_WEBHOOK_URL
will be found after setting up Incoming WebHooks. (See below)Click on Add next to Slash Commands.
/news
http://YOUR-URL.com/news
GET
All other settings can be set on your own discretion.
Click on Add next to Incoming WebHooks.
Note the new Webhook URL.
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.