{"id":20251776,"url":"https://github.com/jfmdev/golang-slack-webhook","last_synced_at":"2026-05-10T01:23:25.694Z","repository":{"id":197904693,"uuid":"699506486","full_name":"jfmdev/golang-slack-webhook","owner":"jfmdev","description":"A simple Go application to post messages in Slack using incoming Webhooks","archived":false,"fork":false,"pushed_at":"2023-10-04T19:37:18.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T00:58:53.264Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jfmdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-10-02T19:11:23.000Z","updated_at":"2023-10-02T21:17:41.000Z","dependencies_parsed_at":"2024-11-14T10:12:50.331Z","dependency_job_id":null,"html_url":"https://github.com/jfmdev/golang-slack-webhook","commit_stats":null,"previous_names":["jfmdev/golang-slack-webhook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfmdev%2Fgolang-slack-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfmdev%2Fgolang-slack-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfmdev%2Fgolang-slack-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfmdev%2Fgolang-slack-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfmdev","download_url":"https://codeload.github.com/jfmdev/golang-slack-webhook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241702460,"owners_count":20005978,"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-11-14T10:12:44.898Z","updated_at":"2026-05-10T01:23:25.652Z","avatar_url":"https://github.com/jfmdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang Webhook\n\nA simple app for Slack, implemented with [Go](https://go.dev/), that uses [incoming webhooks](https://api.slack.com/messaging/webhooks) to post jokes on Slack and to inform about changes on Bitcoin prices.\n\n## Usage\n\nTo use this app, you'll need to:\n\n1. Have admin access to a Slack Workspace.\n2. Create a Slack app (which can be done [here](https://api.slack.com/apps/new)), selecting the option \"From an app manifest\" and then copying the content from the `manifest.json` file from this repository.\n3. [Enable](https://api.slack.com/messaging/webhooks#enable_webhooks) incoming webooks on your workspace, if not already enabled.\n4. [Create](https://api.slack.com/messaging/webhooks#create_a_webhook) a new incoming webhook and copy the Webhook URL.\n5. On the `.env` file, replace the _\\\u003cinsert-your-webhook-url-here\\\u003e_ text with your Webhook URL.\n6. Run the application by executing `go run main`.\n\nIf you use the `--cron` parameter when running the application (e.g. `go run main --cron`) then the messages will only be send when some threshold are meet:\n\n* Jokes will only be send if the previous jokes was sent more than a day ago.\n* Bitcoin prices will only be send if either the previous price was sent more than a day ago or if the price changed more than a 10% compared to the previous time. \n\nThis feature is useful if you want to configure a Cron job to execute the application periodically.\n\n\u003e Threshold values can be configured using the `.env` file.\n\n## Dependencies\n\nJokes are fetched from [JokeAPI](https://sv443.net/jokeapi/v2/) while Bitcoin prices are obtained from [Coinbase](https://docs.cloud.coinbase.com/exchange/).\n\n## License\n\nGolang Webhook is free software; you can redistribute it and/or modify it under the terms of the Mozilla Public License v2.0. You should have received a copy of the MPL 2.0 along with this software, otherwise you can obtain one at http://mozilla.org/MPL/2.0/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfmdev%2Fgolang-slack-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfmdev%2Fgolang-slack-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfmdev%2Fgolang-slack-webhook/lists"}