Skip to content

Unquarantine Self-Service #1594

Open

Description

@Zabuzard

When we /quarantine a user, they get restricted to a single channel (the quarantine channel). In that channel they can talk to a mod who can then /unquarantine them again.

Quarantine is solely meant against bots/scammers. And in nearly all cases they are not humans. To reduce the load from mods, the bot could offer the quarantined user a self-service for unquarantining themselfs by simply clicking a button.

Therefore, the bot would (when someone gets /quarantined) post a message in the quarantine channel, pinging the user and offering an "Unquarantine me" button. If the user clicks that, the bot /unquarantines them automatically.

However, the bot should only do that if the user was not quarantined in the past already. This can be checked through the ModerationActionsStore#getActionsByTargetAscending and then .filter on the type.

(once we have this in place, we could potentially also re-enable the honey-pot channel in the config on PROD)

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions