Skip to content

Split VoteParty state and reward handling - #1570

Merged
BenCodez merged 1 commit into
refactor/background-taskfrom
refactor/voteparty-components
Aug 26, 2026
Merged

Split VoteParty state and reward handling#1570
BenCodez merged 1 commit into
refactor/background-taskfrom
refactor/voteparty-components

Conversation

@BenCodez

@BenCodez BenCodez commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Stacks on #1568.

Keeps VoteParty as the public/event-facing coordinator while separating its two largest responsibilities:

  • VotePartyState owns default persistent total/voted-user storage and required-count calculations
  • VotePartyRewardHandler owns reward delivery mechanics, global/random command execution, and fan-out iteration
  • VoteParty retains threshold checks, reminders, command output, date-change reset events, and the existing public override hooks
  • internal flows deliberately route through VoteParty public methods (get/setTotalVotes, get/setVotedUsers, getRandomPlayerName, giveReward) so subclass integrations keep their previous behavior
  • removes generated Javadoc boilerplate from the touched VoteParty class

Current VoteParty configuration, reward semantics, and public override behavior are intended to remain unchanged.

@BenCodez
BenCodez marked this pull request as ready for review August 25, 2026 00:19
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9f223b8880

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8314e41add

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e925c5e58a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@BenCodez
BenCodez force-pushed the refactor/voteparty-components branch from cff78b7 to 9414938 Compare August 26, 2026 00:12
@BenCodez
BenCodez merged commit 192c114 into master Aug 26, 2026
4 checks passed
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