Add persistent tournament management #1
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
GRID0-net/grid0plus-discord!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/tournament-manager"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GRID0+ organizers can now announce a tournament, collect linked-account registrations and accepted teammate invitations, choose 1v1 or 2v2 after entry closes, and run a single-elimination best-of-three bracket with stable team, match and game IDs.
Scheduling uses explicit player/organizer timezones and availability, prioritizes the first organizer at equal feasible times, refuses overlapping bookings (including across events), and DMs schedules as opponents become known. Unknown or unavailable slots remain visibly unscheduled. Assigned organizers start/report matches; admins can reschedule, undo an unused result, record forfeits, cancel, inspect the audit trail and retry failed notifications.
State and a notification outbox persist in a private, atomically replaced JSON file. Commands remain guild-locked, account verification fails closed, and ordinary members cannot control tournaments. Idle notification polling does not rewrite or serialize the entire store. Notifications are at-least-once; delivery failures are visible.
Enable with
tournaments.store_file; no production configuration was changed.docs/TOURNAMENTS.mdexplains Discord command permissions, round windows, the complete operator flow, backups and limitations. This manages the tournament, not in-game room creation or automatic prize delivery. The initial formats are 1v1/2v2, single elimination, at most 128 entrants.Validation:
go test ./...andgo test -race ./...go vet ./...,git diff --check, executable build and-hsmoke checkNo real Discord messages or tournaments were created during verification. No deployment was performed.