Commit graph

13 commits

Author SHA1 Message Date
a7ebc192c8 Add build version/time stamp to Setup page and awp-cli version command
Embeds the git short hash and UTC build timestamp into both binaries
via ldflags so it's easy to confirm which build is actually deployed,
without needing to hand-maintain a version number.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 19:33:40 -04:00
7370d1291e Add noon-of-gameday GM status email via awp-cli gameday-notice
Adds a cron-driven CLI command that emails the GM a player attendance
summary at noon on the session date, skipping automatically if the
game was canceled or today isn't game day, and tracking last-sent
date so it won't double-send.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 19:18:02 -04:00
fc5c986141 Consolidate log file env vars: AWP_LOG_FILE (web) and AWP_CLI_LOG_FILE (CLI)
Removes the duplicate log setup from cli/cmd/root.go that was reading
AWP_LOG_FILE — log file config now lives only in each binary's main.go.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 19:57:46 -04:00
01d2cae282 Send GM status update email on every attendance change
When a player's attendance is updated — either via email (awp-cli check)
or via the web toggle — an email is sent to the GM with:
  - who changed, what they changed to, and how (email or the site)
  - a summary count of attending/not attending/no response
  - the full current player status list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 19:07:51 -04:00
3aa0c71c32 Log and return PersistSession error in check command
A failed file write was silently ignored, causing attendance updates
to be lost with no indication of failure to cron or the log.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 18:33:32 -04:00
07e67d4684 Make godotenv.Load() best-effort to support containerized deployments
A missing .env file no longer causes a fatal error. Env vars can now
come from the container environment (Docker/systemd) or a .env file
interchangeably.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 18:22:37 -04:00
713a96501d Add error logging to awp-cli with configurable log file
- Route all log output to AWP_LOG_FILE (from .env) if set, else stderr
- Log errors explicitly before returning so they appear in the log file
- Replace log.Fatal in fetch.go with proper error return so callers control logging
- Remove chatty success/no-op log lines that would bloat cron log files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 16:45:56 -04:00
4a778b1dc0 Add uncommitted changes before migration 2025-12-21 12:25:17 -05:00
3b30333835 Sends notice to player if they send in an email that the system can't process. 2024-01-31 11:22:32 -05:00
cb7835fb45 Updated to send GM notifications when player email found 2024-01-29 14:10:15 -05:00
3e1e091356 Fixed bug where looks for attending status in 1st line, but not always there 2024-01-21 01:01:38 -05:00
605d1c69ec Updated README and example players.json 2024-01-20 22:19:42 -05:00
9f894671b0 Full app, v1.0. Contains web app and cli. 2024-01-20 21:45:53 -05:00