{"id":17465433,"url":"https://github.com/suhlig/slack-message","last_synced_at":"2026-05-06T22:11:09.524Z","repository":{"id":48617780,"uuid":"86195918","full_name":"suhlig/slack-message","owner":"suhlig","description":"Send messages to a Slack channel from the command line","archived":false,"fork":false,"pushed_at":"2021-07-17T16:43:17.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-29T17:06:13.947Z","etag":null,"topics":["cloudfoundry","command-line","docker","slack"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suhlig.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-25T23:52:21.000Z","updated_at":"2021-07-17T16:42:58.000Z","dependencies_parsed_at":"2022-08-31T20:10:12.107Z","dependency_job_id":null,"html_url":"https://github.com/suhlig/slack-message","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suhlig/slack-message","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhlig%2Fslack-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhlig%2Fslack-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhlig%2Fslack-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhlig%2Fslack-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suhlig","download_url":"https://codeload.github.com/suhlig/slack-message/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhlig%2Fslack-message/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32713943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T19:35:05.142Z","status":"ssl_error","status_checked_at":"2026-05-06T19:35:03.996Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cloudfoundry","command-line","docker","slack"],"created_at":"2024-10-18T11:42:42.019Z","updated_at":"2026-05-06T22:11:09.498Z","avatar_url":"https://github.com/suhlig.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Send a Slack message\n\n[![Docker Automated build](https://img.shields.io/docker/automated/suhlig/slack-message.svg)](docker.io)\n\nThis is an executable script for sending messages to a Slack channel from the command line. It wraps the [slack-notifier](https://github.com/stevenosloan/slack-notifier) gem. It is also available as Docker image.\n\n# Build\n\n```bash\ndocker build --rm --force-rm -t suhlig/slack-message .\n```\n\n# Run\n\n1. Source this Bash function:\n\n    ```bash\n    slack-message(){\n      docker run                  \\\n          --interactive           \\\n          --tty                   \\\n          --rm                    \\\n          --env SLACK_WEBHOOK_URL \\\n        suhlig/slack-message      \\\n        \"$@\"\n    }\n    ```\n\n1. Run it:\n\n    ```bash\n    slack-message --help\n    ```\n\n# Example\n\nThis command builds a colored Slack message with a title and an image of a random cat (courtesy of [thecatapi.com](http://thecatapi.com)):\n\n```bash\n# grab a random cat URL\nrandom_cat=$(curl --write-out \"%{url_effective}\\n\" --head --location --silent --show-error --output /dev/null http://thecatapi.com/api/images/get)\n\n# send a Slack message with a cat\nslack-message --color 'e86537' --title \"Cat #$RANDOM\" --image_url \"$random_cat\" Please have a look at this cute cat.\n```\n\n# Acknowledgements\n\n* Thanks to [Jess Frazelle](https://github.com/jessfraz) for her [Docker files](https://github.com/jessfraz/dockerfiles) and [Docker shell functions](https://github.com/jessfraz/dotfiles/blob/master/.dockerfunc)\n* [Unix \u0026 Linux Stack Exchange](http://unix.stackexchange.com/questions/45325/get-urls-redirect-target-with-curl) shows the basics or getting the redirect URL. This is necessary because Slack treats multiple uses of a single URL as the same, even if it redirects to a different place on each request (as [The Cat API](http://thecatapi.com) does).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuhlig%2Fslack-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuhlig%2Fslack-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuhlig%2Fslack-message/lists"}