Skip to content

Add timed revocations for Nitro perks#4

Open
TBG1000 wants to merge 1 commit into
mainfrom
codex/add-privilege-revocation-system
Open

Add timed revocations for Nitro perks#4
TBG1000 wants to merge 1 commit into
mainfrom
codex/add-privilege-revocation-system

Conversation

@TBG1000
Copy link
Copy Markdown
Owner

@TBG1000 TBG1000 commented Feb 6, 2026

WARNING!

This is ChatGPT Codex’s attempt at solving issue #3, aligning with the release of their latest 5.3 model. This is completely untested and experimental.

Motivation

  • Provide server staff a way to block a user from redeeming Nitro perks for a fixed duration or indefinitely to handle abuse/misuse without relying solely on punishments like bans or mutes.

Description

  • Add NitroRevocation to track revoked Discord users with an optional expiration timestamp and stringify/parse support for config storage.
  • Add DurationUtils to parse human-friendly duration strings (e.g. 30m, 2h, 1w2d) and format durations for user-facing messages.
  • Extend NitroConfig to load/save a new revoked-users list, provide addRevocation, getRevocation, and removeExpiredRevocations helpers, and expose the revoked entries.
  • Enforce revocations in the bot flow: register an optional duration option for /revoke, persist revocations when staff run /revoke, prevent /redeem for revoked accounts with informative messages, and notify boosters who regain the Nitro role that they are still revoked; update README.md and config.yml to document the feature.

Testing

  • Built the project with mvn package; the build failed due to an environment/network issue fetching com.diffplug.spotless:spotless-maven-plugin:3.1.0 (HTTP 403 from Maven Central), so no successful artifact was produced.
  • Verified code compiles locally in the workspace up to the Maven plugin resolution step and exercised code paths by static inspection (no unit tests were present or run).

Codex Task

@Fishywishi
Copy link
Copy Markdown
Collaborator

I have to kill you

@TBG1000
Copy link
Copy Markdown
Owner Author

TBG1000 commented Feb 6, 2026

I have to kill you

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants