{"id":25485778,"url":"https://github.com/winterhart/farfetch","last_synced_at":"2026-05-18T04:05:50.542Z","repository":{"id":57538177,"uuid":"264991974","full_name":"Winterhart/farfetch","owner":"Winterhart","description":"slack API minimal library","archived":false,"fork":false,"pushed_at":"2021-12-11T19:30:31.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T14:43:05.484Z","etag":null,"topics":["api","golang","slack"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Winterhart.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":"2020-05-18T16:07:03.000Z","updated_at":"2021-12-11T19:30:34.000Z","dependencies_parsed_at":"2022-09-07T17:35:28.415Z","dependency_job_id":null,"html_url":"https://github.com/Winterhart/farfetch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Winterhart/farfetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winterhart%2Ffarfetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winterhart%2Ffarfetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winterhart%2Ffarfetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winterhart%2Ffarfetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Winterhart","download_url":"https://codeload.github.com/Winterhart/farfetch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winterhart%2Ffarfetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278786671,"owners_count":26045588,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":["api","golang","slack"],"created_at":"2025-02-18T18:39:39.925Z","updated_at":"2025-10-07T13:59:07.889Z","avatar_url":"https://github.com/Winterhart.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Farfetch\n\nA tiny piece software to send files and messages using slack API\n\n\n![](http://pixelartmaker.com/art/f740b9b40b4942d.png)\n\nImage from: http://pixelartmaker.com/art/f740b9b40b4942d\n\n## Overview\n\n- Library to send message and upload file to Slack\n- You can compile and use as binary \n- You can also import and use it in your code\n\n## Setup\n\nThis library needs three variables to work:\n- A slack-web hook (`hook`)\n- A slack token (`token`)\n- You also need to choose a slack channel (`channel id`)\n\n### How to get the hook?\n\n- https://api.slack.com/messaging/webhooks\n\n### How to get the token?\n\n- https://api.slack.com/authentication/token-types\n\n### How to get the channel id?\n\n- https://www.wikihow.com/Find-a-Channel-ID-on-Slack-on-PC-or-Mac\n\n## Usage\n\nYou can use this project in two distinct ways.\n\n#### as a binary\n\nAppend your `env` with the following variable: `SLACK_HOOK` your web-hook, `SLACK_TOKEN` your token \nand `SLACK_CH` your channel id.\n\n\nThen build the binary\n\n```bash\n\ngo build cmd/main.go\n\n```\nMake the generated `farfetch` binary file executable\n```bash\n\nchmod +x ./farfetch\n\n```\nThen you can use the binary:\n\n```bash\n\n./farfetch send hello\n\n```\n\nWill send `hello` using your slack-bot to your designated slack channel. \n\n```bash\n\n./farfetch upload ~/pictures/photo.png\n\n```\n\nWill upload the file `photo.png` to your designated slack channel...\n\n#### as a package \n\nYou can use this project as a package in your golang project.\n\n```golang\npackage main\n\nimport (\n\t\"os\"\n\t\"github.com/winterhart/farfetch\"\n)\n\nfunc main() {\n\twebHook := os.Getenv(`SLACK_HOOK`)\n\tslack := farfetch.NewFarfetchImpl(webHook, \"\", \"\")\n\tslack.SendMessage(\"This message is from another project using Farfetch! \")\n\n}\n\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinterhart%2Ffarfetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinterhart%2Ffarfetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinterhart%2Ffarfetch/lists"}