{"id":18539055,"url":"https://github.com/simov/slack-incoming-quotes","last_synced_at":"2026-05-01T19:32:10.492Z","repository":{"id":66028256,"uuid":"93247585","full_name":"simov/slack-incoming-quotes","owner":"simov","description":"Slack Incoming WebHook with Quotes","archived":false,"fork":false,"pushed_at":"2018-05-04T13:16:14.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T02:13:45.793Z","etag":null,"topics":["slack"],"latest_commit_sha":null,"homepage":null,"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/simov.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-03T12:45:02.000Z","updated_at":"2018-05-04T13:16:15.000Z","dependencies_parsed_at":"2023-03-18T16:22:56.655Z","dependency_job_id":null,"html_url":"https://github.com/simov/slack-incoming-quotes","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/simov/slack-incoming-quotes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-incoming-quotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-incoming-quotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-incoming-quotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-incoming-quotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simov","download_url":"https://codeload.github.com/simov/slack-incoming-quotes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fslack-incoming-quotes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32510666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["slack"],"created_at":"2024-11-06T19:46:02.181Z","updated_at":"2026-05-01T19:32:10.476Z","avatar_url":"https://github.com/simov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# slack-incoming-quotes\n\nSlack Incoming WebHook with Quotes\n\n\n# Install\n\n```bash\nnpm install -g slack-incoming-quotes\n```\n\n\n# CLI\n\n```bash\nslack-incoming-quotes \\\n  --config /path/to/config.json \\\n  --db /path/to/db.json \\\n  --quotes /path/to/quotes.json \\\n  --env environment\n```\n\n\n# config.json\n\n```json\n{\n  \"development\": {\n    \"slack\": { \"see below\" }\n  }\n}\n```\n\nThe `username`, `icon_url` and `channel` keys are optional and take effect only if the hook is a *Custom Integration*. These 3 keys have no effect for bundled *OAuth Apps*.\n\n\u003e Single hook:\n\n```json\n\"slack\": {\n  \"hook\": \"[Hook URL]\",\n  \"username\": \"[App Name]\",\n  \"icon_url\": \"[App Avatar]\",\n  \"channel\": \"[Target #channel or @user]\"\n}\n```\n\n\u003e Multiple hooks with a common `username`, `icon_url` and `channel` configuration:\n\n```json\n\"slack\": {\n  \"hook\": [\n    \"[Hook URL 1]\",\n    \"[Hook URL 2]\"\n  ],\n  \"username\": \"[App Name]\",\n  \"icon_url\": \"[App Avatar]\",\n  \"channel\": \"[Target #channel or @user]\"\n}\n```\n\n\u003e Multiple hooks with separate `username`, `icon_url` and `channel` configuration:\n\n```json\n\"slack\": [\n  {\n    \"hook\": \"[Hook URL 1]\",\n    \"username\": \"[App Name]\",\n    \"icon_url\": \"[App Avatar]\",\n    \"channel\": \"[Target #channel or @user]\"\n  },\n  {\n    \"hook\": [\n      \"[Hook URL 2]\",\n      \"[Hook URL 3]\"\n    ],\n    \"username\": \"[App Name]\",\n    \"icon_url\": \"[App Avatar]\",\n    \"channel\": \"[Target #channel or @user]\"\n  }\n]\n```\n\n\n# db.json\n\n```js\n{\n  \"development\": {\n    \"index\": 0\n  },\n  \"production\": {\n    \"index\": 0\n  }\n}\n```\n\n\n# quotes.json\n\n```js\n{\n  \"quote 1\",\n  \"quote 2\",\n  \"...\",\n}\n```\n\n\n# Crontab\n\n```bash\n# Run on every 15 min:\n*/15 * * * * node slack-incoming-quotes [params] \u003e\u003e slack-incoming-quotes.log\n```\n\n\n# API\n\n```js\nvar hook = require('slack-incoming-quotes')\n\nhook({\n  config: require('config.json'),\n  db: require('db.json'),\n  dpath: '/absolute/path/to/db.json',\n  quotes: require('quotes.json'),\n  env: 'development'\n})\n.then((responses) =\u003e {\n  responses.forEach(([res, body]) =\u003e {\n    console.log(new Date().toString(), res.statusCode, body)\n  })\n})\n.catch((err) =\u003e console.error(new Date().toString(), err))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fslack-incoming-quotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimov%2Fslack-incoming-quotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fslack-incoming-quotes/lists"}