{"id":37958499,"url":"https://github.com/pawelad/just-scored","last_synced_at":"2026-01-16T18:02:06.036Z","repository":{"id":57554362,"uuid":"137670224","full_name":"pawelad/just-scored","owner":"pawelad","description":" Ever wanted to be notified in Slack when somebody scored in the World Cup? No? Well, that's also fine.","archived":false,"fork":false,"pushed_at":"2018-08-15T14:47:30.000Z","size":82,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T12:50:20.104Z","etag":null,"topics":["football","go","lambda","serverless","slack-webhook","soccer","worldcup2018"],"latest_commit_sha":null,"homepage":"https://pawelad.xyz/just-scored/","language":"Go","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/pawelad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-17T16:41:05.000Z","updated_at":"2024-06-20T12:50:20.105Z","dependencies_parsed_at":"2022-09-26T18:51:16.455Z","dependency_job_id":null,"html_url":"https://github.com/pawelad/just-scored","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/pawelad/just-scored","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawelad%2Fjust-scored","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawelad%2Fjust-scored/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawelad%2Fjust-scored/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawelad%2Fjust-scored/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawelad","download_url":"https://codeload.github.com/pawelad/just-scored/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawelad%2Fjust-scored/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["football","go","lambda","serverless","slack-webhook","soccer","worldcup2018"],"created_at":"2026-01-16T18:02:05.966Z","updated_at":"2026-01-16T18:02:06.023Z","avatar_url":"https://github.com/pawelad.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Just Scored!\n![AWS Lambda](https://img.shields.io/badge/AWS-Lambda-ff9900.svg)\n[![Build status](https://img.shields.io/circleci/project/github/pawelad/just-scored.svg)][circleci]\n[![Test coverage](https://img.shields.io/coveralls/pawelad/just-scored.svg)][coveralls]\n[![Release](https://img.shields.io/github/release/pawelad/just-scored.svg)][github latest release]\n[![License](https://img.shields.io/github/license/pawelad/just-scored.svg)][license]\n\nEver wanted to be notified in Slack when somebody scored a goal in the World\nCup? No? Well, that's also fine - this was made mostly to play around with Go\nand Lambda, so no harm done. But in case you *are* interested - read on!\n\n\u003cp align=\"center\" \u003e\n    \u003cimg src=\"https://cdn.rawgit.com/pawelad/just-scored/62a25ee9/screenshot.png\" alt=\"Slack message\"\u003e\n\u003c/p\u003e\n\n## Architecture\nThe project is made of two AWS Lambda functions:\n- `goal-checker`, which runs every minute, checks for scored goals in\n  currently played matches and saves them to a DynamoDB table\n- `goal-notifier`, which is triggered on DynamoDB table item creation\n  and sends a notification to the configured Slack webhook(s)\n\nThe third piece of it all is `worldcup` - a very simple API wrapper I made for\nhttp://worldcup.sfg.io/. I may put it in a separate repository after I\nimplement all endpoints, but I decided to leave it here at the moment.\n\n## Running it yourself\nGiven the serverless nature of this project and usage of the awesome\n[Serverless framework][serverless], the *entire* deploy comes up to running\n`serverless deploy` - 🎉.\n\nIf you never used it, then I'd recommend at least skimming through its\n[AWS docs][serverless aws docs], but the only thing you *need* to set up\nlocally are the [AWS credentials][serverless aws credentials] and the Slack\nwebhook URL exported as a `SLACK_WEBHOOK_URLS` environment variable\n(it supports multiple comma separated URLs).\n\nSo, all in all, it should look similar to:\n\n```shell\n$ # Setup\n$ npm install serverless -g\n$ serverless config credentials --provider aws --key FOO --secret BAR\n$ export SLACK_WEBHOOK_URLS='https://hooks.slack.com/services/...'\n$ git clone https://github.com/pawelad/just-scored \u0026\u0026 cd just-scored\n$ make build \n$ # Deployment\n$ serverless deploy\n```\n\nAnd if you want to go _all_ the way, you can fork this repository and plug\nit into [CircleCI][circleci] - it will use the existing config I built, which\nimplements a full CI / CD pipeline. It runs tests on each push and deploys the\napp on each version tag.\n\n## Contributions\nPackage source code is available at [GitHub][github].\n\nFeel free to use, ask, fork, star, report bugs, fix them, suggest enhancements,\nadd functionality and point out any mistakes.\n\n## Authors\nDeveloped and maintained by [Paweł Adamczak][pawelad].\n\nReleased under [MIT License][license].\n\n\n[circleci]: https://circleci.com/gh/pawelad/just-scored\n[coveralls]: https://coveralls.io/github/pawelad/just-scored\n[github]: https://github.com/pawelad/just-scored\n[github latest release]: https://github.com/pawelad/just-scored/releases/latest\n[license]: https://github.com/pawelad/just-scored/blob/master/LICENSE\n[pawelad]: https://github.com/pawelad\n[serverless]: https://serverless.com/\n[serverless aws credentials]: https://serverless.com/framework/docs/providers/aws/guide/credentials/\n[serverless aws docs]: https://serverless.com/framework/docs/providers/aws/guide/quick-start/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawelad%2Fjust-scored","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawelad%2Fjust-scored","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawelad%2Fjust-scored/lists"}