Track an Advent of Code leaderboard and reports updates to Mattermost
Find a file
2023-12-03 19:18:26 -06:00
.idea Initial commit 2023-12-02 15:39:20 -06:00
.vscode Add daemonize mode, readme 2023-12-03 19:18:26 -06:00
.gitignore Fix gitignore for binary name 2023-12-02 19:32:25 -06:00
go.mod Fixes 2023-12-02 19:48:25 -06:00
go.sum Scan every 15 minutes, run until stopped 2023-12-02 19:31:38 -06:00
main.go Add daemonize mode, readme 2023-12-03 19:18:26 -06:00
README.md Add daemonize mode, readme 2023-12-03 19:18:26 -06:00
staticcheck.conf Fix typo, updates from vscode 2023-12-02 15:59:05 -06:00

Advent of Code leaderboard tracker for Mattermost

Summary

This is an application designed to be run on some sort of cron-like schedule or on its own with the -d argument where it will scan every 15 minutes. It will check the status of an Advent of Code leaderboard and report any diffs to the given Mattermost webhook.

Configurables

The following configurables are supported in either argument ("-arg=val"), environment, or .env file form:

Argument Env var Description Default
year (none) The event year to scan "2023"
leaderboard AOC_LEADERBOARD The leaderboard ID to read (e.g. 1234567) ""
session AOC_SESSION A valid session ID pulled from your web browser on a logged-in account ""
webhookURL AOC_WEBHOOK The full URL for an incoming webhook to your Mattermost instance (e.g. https://my.mattermost.server/hooks/abcd1234) ""
d (none) Daemonize the application so it refreshes itself every 15 minutes false