{"id":24805487,"url":"https://github.com/blarc/advent-of-code-google-chat","last_synced_at":"2026-05-04T04:31:35.887Z","repository":{"id":64350709,"uuid":"573866727","full_name":"Blarc/advent-of-code-google-chat","owner":"Blarc","description":"Script for sending Advent of Code leaderboard information to Google Chat space.","archived":false,"fork":false,"pushed_at":"2025-12-13T13:15:51.000Z","size":1838,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T02:53:57.977Z","etag":null,"topics":["advent-of-code","github-actions","github-template","google-chat"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Blarc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-03T17:23:47.000Z","updated_at":"2025-12-13T13:15:56.000Z","dependencies_parsed_at":"2025-01-02T11:19:17.105Z","dependency_job_id":"9541d5be-b75d-403f-84a8-2a6758fc098d","html_url":"https://github.com/Blarc/advent-of-code-google-chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Blarc/advent-of-code-google-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blarc%2Fadvent-of-code-google-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blarc%2Fadvent-of-code-google-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blarc%2Fadvent-of-code-google-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blarc%2Fadvent-of-code-google-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blarc","download_url":"https://codeload.github.com/Blarc/advent-of-code-google-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blarc%2Fadvent-of-code-google-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32595059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["advent-of-code","github-actions","github-template","google-chat"],"created_at":"2025-01-30T07:19:43.669Z","updated_at":"2026-05-04T04:31:35.857Z","avatar_url":"https://github.com/Blarc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code Google Chat\nThis script sends Advent of Code leaderboard information to a Google Chat space.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"images/leaderboardUpdate.png\" alt=\"leaderboardUpdate\" width=\"800\"/\u003e\u003c/p\u003e\n\n## How it works\nThe script saves the current leaderboard in a `saved.json` file on GitHub. Every 15 minutes, the script uses the Advent of Code API to retrieve the updated leaderboard. \nIf the leaderboard has changed, the script saves the updated leaderboard to GitHub and sends a message with the updated leaderboard to the Google Chat space.\n\n## Getting started\nTo use this script, click the `Use this template` button and set up the required GitHub environment variables. \nYou can set up the environment variables by going to the  `⚙️ Settings \u003e Secrets` section of your project repository.\n\n## Setting environment variables\nBefore running the script, you need to set the following environment variables:\n\n```bash\nexport sessionCookie=\"YOUR_SESSION_COOKIE\"\nexport googleChatUrl=\"YOUR_GOOGLE_CHAT_URL\"\nexport leaderboardUrl=\"YOUR_LEADERBOARD_URL\"\n```\n- `sessionCookie` can be retrieved by visiting the Advent of Code page and using your browser's developer tools to inspect the cookies associated with the page.\n\n- `googleChatUrl` should look something like https://chat.googleapis.com/v1/spaces/AAAAoYQLvw0/messages?key=YOUR_KEY\u0026token=YOUR_TOKEN. You can get it from the Google Chat space by following the instructions [here](https://developers.google.com/chat/how-tos/webhooks#create_a_webhook).\n\n- `leaderboardUrl` can be retrieved from the Advent of Code private leaderboard view, by clicking on `[API]` and then `[JSON]`.\n\u003cp align=\"center\"\u003e\u003cimg src=\"images/aocApi.png\" alt=\"aocApi\" width=\"700\"/\u003e\u003c/p\u003e\n\n## Running the script\nOnce you have set the environment variables, you can run the script using the following command:\n\n```bash\ngo run aoc.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblarc%2Fadvent-of-code-google-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblarc%2Fadvent-of-code-google-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblarc%2Fadvent-of-code-google-chat/lists"}