Skip to content

294-Feature add poll rewards command for distributing tokens to poll voters#295

Merged
RemainingDelta merged 1 commit into
devfrom
294-Feature
Jun 3, 2026
Merged

294-Feature add poll rewards command for distributing tokens to poll voters#295
RemainingDelta merged 1 commit into
devfrom
294-Feature

Conversation

@RemainingDelta
Copy link
Copy Markdown
Owner

Changes

  • Added /poll-rewards slash command for distributing tokens to voters of a specific poll option (admin-only, channel-restricted, confirmation UI)
  • Added increment_user_balance() helper using atomic $inc for safe balance updates (database/mongo.py)
  • Added DB-backed idempotency via processed_poll_rewards collection to prevent duplicate payouts (database/mongo.py)
  • Added POLLS_CHANNEL_ID to both PROD and DEV config branches (features/config.py)
  • Updated /event-staff-help with /poll-rewards documentation (features/event.py)

Closes #294

@RemainingDelta RemainingDelta merged commit ccb2a68 into dev Jun 3, 2026
3 checks passed
@RemainingDelta RemainingDelta deleted the 294-Feature branch June 3, 2026 08:01
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.

Feature: /poll-rewards command for distributing tokens to correct poll predictors

1 participant