{"id":13828856,"url":"https://github.com/a-sync/slackr","last_synced_at":"2025-06-24T22:43:14.280Z","repository":{"id":86400916,"uuid":"112377674","full_name":"a-sync/slackr","owner":"a-sync","description":"Simple shell command to send or pipe content to slack via webhooks. (To upload snippets or files use: www.github.com/a-sync/slackfu)","archived":false,"fork":false,"pushed_at":"2018-09-19T20:12:44.000Z","size":13,"stargazers_count":42,"open_issues_count":0,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-07T15:02:02.950Z","etag":null,"topics":["shell","shell-script","slack","slack-api","slack-bot","slack-messages","slack-webhook","slackbot","webhook-api"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/a-sync.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}},"created_at":"2017-11-28T19:11:33.000Z","updated_at":"2024-11-27T21:25:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7cf6327-8cba-41fc-b413-1f336bf829ef","html_url":"https://github.com/a-sync/slackr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a-sync/slackr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-sync%2Fslackr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-sync%2Fslackr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-sync%2Fslackr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-sync%2Fslackr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-sync","download_url":"https://codeload.github.com/a-sync/slackr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-sync%2Fslackr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261770446,"owners_count":23207187,"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":["shell","shell-script","slack","slack-api","slack-bot","slack-messages","slack-webhook","slackbot","webhook-api"],"created_at":"2024-08-04T09:03:15.461Z","updated_at":"2025-06-24T22:43:14.226Z","avatar_url":"https://github.com/a-sync.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# slackr\n\n## Requirements\n * bash compatible shell\n * sane install of python\n * sane install of curl\n\n## Installation\n 1. download and unpack the [archive](https://github.com/a-sync/slackr/archive/master.tar.gz)\n 2. enter the unpacked directory and make [slackr](slackr) executable\n 3. set [your webhook](https://my.slack.com/services/new/incoming-webhook/) URL in the WEBHOOK_URL variable of [slackr](slackr#L3)\n 4. create a global symbolic link\n```bash\ncurl -sL https://github.com/a-sync/slackr/archive/master.tar.gz | tar xz\ncd slackr-master \u0026\u0026 chmod +x slackr\nread -p \"Enter webhook URL: \" WHURL \u0026\u0026 sed -i \"3s|.*|WEBHOOK_URL=\\\"$WHURL\\\"|\" slackr\nsudo ln -s \"$(readlink -f slackr)\" /usr/local/bin\n```\n\n## Usage\n```\nUsage: slackr [options] \u003ctext\u003e\n\nOptions:\n    -r \u003cchannel name|channel ID\u003e\n    -i \u003cbot icon emoji\u003e\n    -n \u003cbot name\u003e\n    -c \u003cgood|warning|danger|#hex color\u003e\n    -a \u003cauthor name\u003e\n    -t \u003ctitle text\u003e\n    -l \u003ctitle link URL\u003e\n    -f \u003cfooter text\u003e\n    -w \u003cwebhook URL\u003e\n\nExamples:\n    slackr some text\n    slackr -c good -n friendlybot -i :cat: hello\n    slackr -r general \u003c logfile.txt\n    ls -la /etc/ | slackr -r D024BE91L -f \"$(history 1)\"\n    tail /var/log/syslog | slackr -a \"$(id -un) $(hostname -f)\"\n```\n\n## :warning: Important\n[@username format as a recipient (-r) is deprecated!  \nSlack API support was removed on 2018-09-12.](https://github.com/a-sync/slackr/wiki#important)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-sync%2Fslackr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-sync%2Fslackr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-sync%2Fslackr/lists"}