{"id":18780419,"url":"https://github.com/karan/slack-hn","last_synced_at":"2025-04-13T11:30:53.614Z","repository":{"id":27903033,"uuid":"31394731","full_name":"karan/slack-hn","owner":"karan","description":"SEE https://github.com/karan/slack-news INSTEAD","archived":false,"fork":false,"pushed_at":"2016-09-09T03:32:40.000Z","size":136,"stargazers_count":37,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T23:29:50.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/karan/slack-news","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-26T23:41:31.000Z","updated_at":"2025-02-01T17:02:26.000Z","dependencies_parsed_at":"2022-09-01T10:20:32.467Z","dependency_job_id":null,"html_url":"https://github.com/karan/slack-hn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2Fslack-hn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2Fslack-hn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2Fslack-hn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2Fslack-hn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karan","download_url":"https://codeload.github.com/karan/slack-hn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705515,"owners_count":21148549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T20:26:20.385Z","updated_at":"2025-04-13T11:30:53.308Z","avatar_url":"https://github.com/karan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**SEE https://github.com/karan/slack-news INSTEAD**\n\nslack-hn\n========\n\nRead Hacker News right from Slack just typing `/hn`.\n\n![](http://i.imgur.com/kpdF7SR.gif)\n\n## Usage\n\nFrom any Slack channel, just type `/hn`. The posts will be shown on the same channel.\n\n## Installation\n\n- Go to your channel\n- Click on **Configure Integrations**.\n- Scroll all the way down to **DIY Integrations \u0026 Customizations** section.\n\n#### Add a new slash command with the following settings:\n\n- Click on **Add** next to **Slash Commands**.\n\n  - Command: `/hn`\n  - URL: `http://slack-hn.herokuapp.com/hn`\n  - Method: `GET`\n\n  ![](http://i.imgur.com/vNL3MCk.png)\n\nAll other settings can be set on your own discretion.\n\n#### Set up a new incoming webhook\n\n- Click on **Add** next to **Incoming WebHooks**.\n\n  - Choose a channel to integrate with (this doesn't matter -- it'll always respond to the channel you called it from)\n  - Note the new Webhook URL.\n\n  ![](http://i.imgur.com/JRJ92xj.png)\n\n- Set a new environment variable called `SLACK_WEBHOOK_URL`.\n\n  ```bash\n  # Unux systems (AWS etc)\n  $ export SLACK_WEBHOOK_URL=\u003cURL\u003e\n\n  # Heroku\n  $ heroku config:set SLACK_WEBHOOK_URL=\u003cURL\u003e\n  ```\n\n#### (Optional) Setup your own server\n\nAlthough the code is hosted at `http://slack-hn.herokuapp.com/`, you are free to setup your own instance.\n\nMake sure to change the **Slash Command** URL to whatever your URL is.\n\n##### Heroku\n\n[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/karan/slack-hn/tree/master)\n\nAnd then:\n\n```bash\n$ heroku config:set SLACK_WEBHOOK_URL=\u003cURL\u003e\n```\n\n##### Other servers\n\n```bash\n$ git clone git@github.com:karan/slack-hn.git\n$ cd slack-hn\n$ npm install\n$ export SLACK_WEBHOOK_URL=\u003cURL\u003e\n$ node app.js\n```\n\n## Contributing\n\n- Please use the [issue tracker]() to report any bugs or file feature requests.\n\n- PRs are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran%2Fslack-hn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaran%2Fslack-hn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran%2Fslack-hn/lists"}