j0b10/AoC-badges

Updates the badges of your Readme to show your current Advent of Code stats

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
sessionYour session code for login. Retrive it from your browser cookies. Make sure you use a secret to not leak this to public. yes
useridYour unique userid on adventofcode.com, obtain it from **YOUR** private leaderboard url (its the number at the end of the url). yes
yearThe year for which the stats should be retrived. If not speified, the current year (from system time) is used. no
leaderboardThe url of your leaderboard json file. You can get it by just appending .json to the url of your leaderboard. no
fileThe file where the badges should be updated. Default is README.md noREADME.md
dayRegexA regular expression to find the day badge in your file. Must be changed if you change the badge. no(?<=https:\/\/img\.shields\.io\/badge\/day%20📅-)[0-9]+(?=-blue)
starsRegexA regular expression to find the stars badge in your file. Must be changed if you change the badge. no(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)
daysCompletedRegexA regular expression to find the completed days badge in your file. Must be changed if you change the badge. no(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red)

no outputs