Skip to content

Automatically resolve unban appeals and restrict owner overrides - #223

Open
SlimShadyIAm wants to merge 1 commit into
mainfrom
fix/automatic-unban-appeals
Open

SlimShadyIAm wants to merge 1 commit into
mainfrom
fix/automatic-unban-appeals

Conversation

@SlimShadyIAm

Copy link
Copy Markdown
Member

Appeals now automatically approve or deny when reaction votes reach the existing majority threshold. Both added and removed reactions trigger a fresh count, using a shared lock and persisted processing state to prevent duplicate actions.

Rename the buttons to “Owner override: Unban” and “Owner override: Deny appeal” and restrict them to Aaron or the bot owner, without requiring the appeal moderator role. Overrides can resolve an appeal regardless of vote totals. Automatic unbans attribute the internal case to the bot while retaining anonymous public staff logs.

Validation: 12 offline unit tests passed, covering majority decisions, abstentions, conflicting votes, permissions, duplicate events, failed unbans, and failed DMs. Python compilation and git diff checks passed. Live Discord behavior has not been tested.

This branch has not been deployed

No deployments
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