Skip to content

feat: add bot commands for tournament management#216

Draft
Fruktus wants to merge 2 commits into
masterfrom
feat/bot-tournament-commands
Draft

feat: add bot commands for tournament management#216
Fruktus wants to merge 2 commits into
masterfrom
feat/bot-tournament-commands

Conversation

@Fruktus
Copy link
Copy Markdown
Owner

@Fruktus Fruktus commented Nov 27, 2025

Provides very basic tournament management plane.

It includes:

  • Creating
  • Starting
  • Joining
  • Leaving
    a given tournament

It does not include:

  • Recognizing banned users and preventing them from joining tournaments
  • Cancelling (or otherwise deleting) tournaments
  • Reaction-based registration
  • Match tallying
  • Pre-signed matches

@Fruktus Fruktus force-pushed the feat/bot-tournament-commands branch 7 times, most recently from e10b765 to 47e14db Compare December 6, 2025 14:36
tournament_id="Id of the tournament",
active_until="Date until which matches for first round are accepted, in the isoformat. Ex: 2021-07-27T16:02:08.070557")
async def start_tournament(interaction, tournament_name: str, active_until: str):
await self._start_tournament(interaction, tournament_name, active_until)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kjarosh
active_until in all of these formats is converted into isoformat, but:

  1. it does not enforce TZ (and I doubt anyone would remember it)
  2. as per our discussion, we likely want to provide only the day and (probably) randomize somewhere between 12:00 UTC +- 12h as the end time

With this in mind, I'd probably switch to strptime with format like YYYY-MM-DD

What do you think?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary: We'll go with AoE (Anywhere on Earth)

@Fruktus Fruktus force-pushed the feat/bot-tournament-commands branch from 47e14db to 122ada5 Compare December 9, 2025 17:56
Comment thread server/src/QRServer/discord/bot.py
Comment thread server/src/QRServer/discord/bot.py
@Fruktus Fruktus force-pushed the feat/bot-tournament-commands branch from 122ada5 to b289174 Compare December 12, 2025 16:19
@Fruktus Fruktus force-pushed the feat/bot-tournament-commands branch from b289174 to 023d572 Compare December 16, 2025 17:18
@Fruktus Fruktus force-pushed the feat/bot-tournament-commands branch from 023d572 to 8944c2d Compare January 26, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant