{"id":15345465,"url":"https://github.com/jthomas/goalbot","last_synced_at":"2026-05-21T04:01:14.863Z","repository":{"id":140705230,"uuid":"137780289","full_name":"jthomas/goalbot","owner":"jthomas","description":"Serverless Twitter bot which tweets out goals from the 2018 FIFA World Cup","archived":false,"fork":false,"pushed_at":"2018-06-27T07:59:15.000Z","size":137,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T11:06:14.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jthomas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-18T16:50:39.000Z","updated_at":"2023-02-26T14:29:49.000Z","dependencies_parsed_at":"2024-07-09T18:04:32.556Z","dependency_job_id":null,"html_url":"https://github.com/jthomas/goalbot","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"cb26e27c9f3558a5c3df7cc509ca4de7f746ddd7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jthomas/goalbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthomas%2Fgoalbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthomas%2Fgoalbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthomas%2Fgoalbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthomas%2Fgoalbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jthomas","download_url":"https://codeload.github.com/jthomas/goalbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthomas%2Fgoalbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33288119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"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":[],"created_at":"2024-10-01T11:13:31.915Z","updated_at":"2026-05-21T04:01:14.839Z","avatar_url":"https://github.com/jthomas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# World Cup 2018 Goal Bot - 🌍🏆⚽️🤖\n\nServerless Twitter bot which tweets out goals from the [2018 FIFA World Cup](https://www.fifa.com/worldcup/).\n\nServerless application built using [IBM Cloud Functions](https://console.bluemix.net/openwhisk/) ([Apache OpenWhisk](https://github.com/apache/incubator-openwhisk)).\n\nPowers the [WC2018 Goals](https://twitter.com/WC2018_Goals) Twitter account.\n\n![World Cup Goal Tweet](.images/tweet.png?raw=true \"World Cup Goal Tweet\")\n\n## architecture\n\nThis project has two [serverless functions](https://github.com/apache/incubator-openwhisk/blob/master/docs/actions.md) `goal_tracker` and `twitter`. \n\n`goal_tracker` is connected to an [alarm trigger](https://github.com/apache/incubator-openwhisk-package-alarms) running every sixty seconds. It retrieves all goals for live matches using this [API](http://worldcup.sfg.io/). If new goals are returned, it invokes the `goal` trigger with details.\n\n`twitter` is connected to the `goal` trigger. It takes goal events and sends new tweets using the [Twitter API](https://developer.twitter.com/en/docs/tweets/post-and-engage/overview).\n\nRedis is used to cache goals previously seen by the `goal_tracker` function.\n\n## installation\n\nIf you want to deploy this project you will need an instance of the Apache OpenWhisk platform, access to a Redis database and credentials for a Twitter application.\n\n### setup\n\n- Install [The Serverless Framework](https://serverless.com/).\n\n  ```\n  npm install serverless\n  ```\n\n- Clone [Git repository](https://github.com/jthomas/goalbot).\n\n  ```\n  git clone https://github.com/jthomas/goalbot.git\n  ```\n\n- Install project dependencies.\n\n  ```\n  cd goalbot \u0026\u0026 npm install\n  ```\n\n- Create authentication credential for [Redis](https://compose.com/databases/redis) and [Twitter ](https://apps.twitter.com/) in `creds.json` file.\n\n  ```json\n  {\n    \"redis\": { \n      \"host\": \"XXX\",\n      \"port\": \"XXX\",\n      \"password\": \"XXX\"\n    },\n    \"twitter\": {\n      \"consumer_key\": \"XXX\",\n      \"consumer_secret\": \"XXX\",\n      \"access_token_key\": \"XXX\",\n      \"access_token_secret\": \"XXX\"\n    }\n  }\n  \n  ```\n\n- Run the `deploy` command.\n\n  ```\n  serverless deploy\n  ```\n\n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthomas%2Fgoalbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjthomas%2Fgoalbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthomas%2Fgoalbot/lists"}