{"id":18569070,"url":"https://github.com/dainfloop/aoc-leaderboard-bot","last_synced_at":"2025-09-09T15:47:17.054Z","repository":{"id":210459878,"uuid":"725710509","full_name":"DaInfLoop/AoC-Leaderboard-Bot","owner":"DaInfLoop","description":"Cool script that posts a Advent of Code private leaderboard on Discord","archived":false,"fork":false,"pushed_at":"2025-05-16T08:06:09.000Z","size":29,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T09:23:21.258Z","etag":null,"topics":["advent-of-code","discord"],"latest_commit_sha":null,"homepage":"","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/DaInfLoop.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":"2023-11-30T17:59:56.000Z","updated_at":"2025-05-16T08:06:07.000Z","dependencies_parsed_at":"2025-02-17T13:44:53.932Z","dependency_job_id":"92e96aca-3dc0-483c-b25d-86b033d0244b","html_url":"https://github.com/DaInfLoop/AoC-Leaderboard-Bot","commit_stats":null,"previous_names":["dainfloop/aoc-leaderboard-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DaInfLoop/AoC-Leaderboard-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaInfLoop%2FAoC-Leaderboard-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaInfLoop%2FAoC-Leaderboard-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaInfLoop%2FAoC-Leaderboard-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaInfLoop%2FAoC-Leaderboard-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaInfLoop","download_url":"https://codeload.github.com/DaInfLoop/AoC-Leaderboard-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaInfLoop%2FAoC-Leaderboard-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274320547,"owners_count":25263507,"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-09-09T02:00:10.223Z","response_time":80,"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","discord"],"created_at":"2024-11-06T22:32:01.999Z","updated_at":"2025-09-09T15:47:16.978Z","avatar_url":"https://github.com/DaInfLoop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code Leaderboard Webhook\n\nCool script that posts a Advent of Code private leaderboard on Discord\n\n\u003e [!NOTE]  \n\u003e This version of the webhook runs in the [Friends of Replit](https://discord.gg/friendsofreplit) Discord server, running every day at about 5:30AM UTC.\n\n## Setup\n\n### GitHub Actions (recommended)\n1. Fork this repo [(fork)](https://github.com/DaInfLoop/AoC-Leaderboard-Bot/fork)\n2. Edit `config.json` with your private leaderboard ID\n3. Open your Repository settings and head to `Secrets and variables` \u003e `Actions`\n4. Create two **Secrets**, called `COOKIE` (contains your Advent of Code session ID), and `WEBHOOK` (contains a Discord webhook URL)\n5. Voila!\n\n### Self-hosting\n1. Clone this repo:\n```sh\n$ git clone https://github.com/DaInfLoop/AoC-Leaderboard-Bot.git\n```\n2. Move into the newly made directory\n3. Run `npm i`\n4. Edit `config.json` with your private leaderboard ID\n5. Set up two environmental variables, called `COOKIE` (contains your Advent of Code session ID), and `WEBHOOK` (contains a Discord webhook URL)\n6. Set up a cron-job or similar to run `node .` in the current directory at a certain time (e.g. 5:00AM UTC). The script does not do this by default.\n\n## Linking Discord Users\nTo link a Discord user, open up `users.js` and add a new property to the object. The format is:\n\n```js\n{\n  // other fields\n\n  // An Identifier of sorts (not required)\n  \"AoC ID\": \"Discord ID\",\n}\n```\n\n### \"Hey, but how do I get my Advent of Code ID?\"\n\nTo get **your** Advent of Code ID, first go to your [settings page](https://adventofcode.com/settings). It should look something like this:  \n![AoC Settings Page](https://github.com/DaInfLoop/AoC-Leaderboard-Bot/assets/92693892/6c5b10b2-c252-455e-b32c-41e492350005)\n\nGrab your User ID from the `(anonymous user XXXXXX)` option. Voila.\n\n### \"Okay, how do I get my Discord ID?\"\n\nFirst of all:\n\n![Frost Keeper from \"House Vibe\" kicking you](https://media.tenor.com/RU4kYByG3igAAAAC/house-vibe-roblox.gif)\n\nJokes aside, to get your Discord User ID, first enable Developer Mode (User Settings \u003e Advanced \u003e Developer Mode):\n\n![Developer Mode](https://github.com/DaInfLoop/AoC-Leaderboard-Bot/assets/92693892/2af0cf9d-b9cd-41b9-a88e-4679ac3d4fc8)\n\nThen click your user profile and click `Copy User ID`: \n\n![image](https://github.com/DaInfLoop/AoC-Leaderboard-Bot/assets/92693892/579a3f4e-9787-4a47-8ca8-8d964142fe03)\n\nVoila!\n\n### Cool, but how do I get my leaderboard ID?\n\n\u003cimg src=\"https://discord.com/assets/1f0555b99bb187cbc6c4.svg\" width=\"64px\"/\u003e\n\n![Incoming Sword](https://media.discordapp.net/attachments/713391255480172565/1127957841177747558/interesting-sandbox-game-house-vibe.gif)\n\nOpen your private leaderboard (e.g. https://adventofcode.com/2023/leaderboard/private/view/970245) and grab the ID. It's that easy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdainfloop%2Faoc-leaderboard-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdainfloop%2Faoc-leaderboard-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdainfloop%2Faoc-leaderboard-bot/lists"}