Skip to content

Ranked only while live; optional per-stream pair limit - #40

Merged
Finesssee merged 3 commits into
mainfrom
feat/pair-ranked-per-stream
Oct 15, 2026
Merged

Finesssee merged 3 commits into
mainfrom
feat/pair-ranked-per-stream

Conversation

@Finesssee

@Finesssee Finesssee commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

What changes for chat

  • Live duels are always ranked, with no pair limit by default (the owner asked for unlimited). Mods can set pairRankedPerStream (0 to 50, 0 = no limit) in the balance editor; with a limit the pair gets that many ranked duels per live stream. Before this it was a fixed 5 per rolling 24 h.
  • Past the limit a duel is unrated and pays half the dollars (floor: $2 win, $1 loss).
  • Offline duels are unrated and pay nothing. If the live check fails, the last answer stands; with no answer yet, duels stay ranked.
  • The last ranked duel's result line ends with "Last ranked duel between them this stream."
  • !stats @name adds the ranked duels left between the sender and @name.
  • Mods reset one pair with !resetpair @a @b in chat or "Reset pair count" on the mod page.
  • Pair plays saved before this change count toward the current stream when they fall inside it.

Tests

bun run check: 399 pass. New cases in tests/game.test.ts (per-stream cap, half pay, offline, legacy plays, 0 = no limit, resetPair) and tests/channel.test.ts (!stats @name, !resetpair, admin resetPair).

Docs: docs/CONTRACTS.md, docs/DUELS.md.

- pairRankedPerStream config (default 5, 0 = no limit) replaces the fixed 5 per 24 h
- offline duels are unrated and pay nothing; past the pair limit they pay half
- last ranked duel tag, !stats @name shows ranked duels left
- !resetpair @A @b and the mod-page Reset pair count
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: nesszer/pixfray/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5585fca8-6ec8-4f31-b454-54d490b77da9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Mods can still set pairRankedPerStream in the balance editor.
@Finesssee Finesssee changed the title Ranked duels per pair per live stream Ranked only while live; optional per-stream pair limit Oct 15, 2026
@Finesssee
Finesssee merged commit 88a4a82 into main Oct 15, 2026
3 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