Skip to content

Add anonymous multi-user vote command - #191

Open
MetaspIoit wants to merge 1 commit into
hackthebox:mainfrom
MetaspIoit:votes
Open

Add anonymous multi-user vote command#191
MetaspIoit wants to merge 1 commit into
hackthebox:mainfrom
MetaspIoit:votes

Conversation

@MetaspIoit

Copy link
Copy Markdown

Summary

  • Adds /admin vote for Administrator, Community Manager, and Community Team to start a timed anonymous poll over multiple Discord members
  • Eligible staff (Admin/CM/CT + mod roles) cast Approve/Reject votes; identities stay private and exact ✓/✗ tallies stay hidden until auto-close
  • Public embed lists nominees and shows a neutral activity box per ballot cast; results post automatically when the duration ends
  • Includes DB models, Alembic migration, persistent view registration/reschedule on restart, and role-group config coverage

Test plan

  • Run migrations (alembic upgrade head)
  • Start bot and confirm /admin vote appears for Admin/CM/CT only
  • Start a vote with multiple members and a short duration (e.g. 2m)
  • As a mod role, select a nominee and Approve/Reject; confirm ephemeral confirmation and a neutral activity box appears next to that nominee
  • Confirm changing your own vote does not add another box
  • Confirm unauthorized users cannot vote
  • Wait for close and confirm results show approve/reject totals with no voter names
  • Restart bot mid-vote and confirm buttons still work and the poll still auto-closes

Made with Cursor

Allow Admin/CM/Community Team to start timed anonymous polls so staff can approve or reject nominees without revealing voter identity or live tallies until close.

Co-authored-by: Cursor <cursoragent@cursor.com>
@MetaspIoit

Copy link
Copy Markdown
Author

can't code so had to use cursor. This is to help FalconSpy with our CC program via discord to keep moderation team votes anonymous.

PLEASE ASSESS AND VERIFY CODE BEFORE PUSHING TO MAIN.

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