{"id":23114085,"url":"https://github.com/derveloper/gotee","last_synced_at":"2025-04-04T00:27:00.781Z","repository":{"id":66568821,"uuid":"293167445","full_name":"derveloper/gotee","owner":"derveloper","description":"like unix `tee` but for slack","archived":false,"fork":false,"pushed_at":"2020-09-07T21:36:25.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-09T12:27:59.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derveloper.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-09-05T23:01:54.000Z","updated_at":"2023-03-05T03:24:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"c06aba6f-cad2-4795-ac16-287f1ddd197f","html_url":"https://github.com/derveloper/gotee","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/derveloper%2Fgotee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derveloper%2Fgotee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derveloper%2Fgotee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derveloper%2Fgotee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derveloper","download_url":"https://codeload.github.com/derveloper/gotee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247101105,"owners_count":20883711,"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-12-17T03:18:40.335Z","updated_at":"2025-04-04T00:27:00.776Z","avatar_url":"https://github.com/derveloper.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"= gotee\n\nlike unix `tee` but for slack\n\n== usage\n\n[source.bash]\n----\nUsage of bin/gotee:\n  -c, --channel string   set the channel to post to (default \"C017H70JUC8\")\n  -h, --help             print this help\n----\n\n=== examples\n\n==== simple\n\nPipe `STDOUT` to slack\n\n[source,bash]\n----\necho \"test\" | gotee\n----\n\nStream `STDOUT` to slack, appends new lines to message every 5 seconds\n\n[source,bash]\n----\nwhile true; do echo test; sleep 1; done | gotee\n----\n\n==== systemd failure notifications\n\n===== Create a gotee systemd unit file\n\n[source,bash]\n----\nsystemctl edit --full --force gotee@.service\n----\n\n===== Content of the gotee unit file\n\n[source,ini]\n----\n[Unit]\nDescription=Send slack notification\n\n[Service]\nType=oneshot\nExecStart=/usr/bin/bash -c '/usr/bin/systemctl status %i | /usr/local/bin/gotee'\n----\n\n===== Finally, add gotee as OnFailure unit\n\n[source,ini]\n----\n[Unit]\n...\nOnFailure=gotee@%n\n----\n\n====== Notifications for all units\n\nYou can place a top-level (global) `OnFailure` in `/etc/systemd/system/service.d/10-notify-failed.conf`\n\n== configuration\n\neither use the environment variables `GOTEE_SLACK_TOKEN` and `GOTEE_SLACK_CHANNEL`\nor place a config file in `/etc/gotee/config.yml`\n\n[source,yaml]\n----\nslack_token: \"\u003cYOUR API TOKEN\u003e\"\nslack_channel: \"C00000000\"\n----\n\n== license\n\n[source]\n----\nCopyright 2020 Tristan Leo\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderveloper%2Fgotee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderveloper%2Fgotee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderveloper%2Fgotee/lists"}