add optional kick-on-join to clear #mitochondria-is-the-etc - #72
Closed
scooterthedev wants to merge 1 commit into
Closed
add optional kick-on-join to clear #mitochondria-is-the-etc#72scooterthedev wants to merge 1 commit into
scooterthedev wants to merge 1 commit into
Conversation
A gated channel still fills with messages: every unverified member posts, Prometheus deletes it, and the channel churns. Kick on join stops that at the door — the member is removed as they join and DMed the terms instead. Off by default, so existing gates keep deleting messages and nothing else. It is set with `--kick` on `/pro gate set`, a checkbox in the phrase modal, or `/pro gate kick on|off` afterwards, and shows in `/pro gate status`. Deletion stays the backstop. Anyone who posts without verifying — an existing member, a rejoin, a kick Slack refused — has the message deleted, and in kick mode is then removed and DMed too. Two things follow from the member not being in the channel. Ephemeral messages cannot reach them, so the whole prompt moves into the DM and the agree button trusts the channel in its own value rather than `body.channel.id`, which is now the DM. And the phrase can no longer be typed in the channel, so the DM carries a button opening a modal for it; `lib/actions/index.js` grew a `views` export that skips the loader's ack so that modal can answer `response_action: "errors"` on a wrong phrase. Acknowledging re-invites them on the same user token that did the kicking, so private channels work too. That fires `member_joined_channel` again, but the acceptance is recorded by then, so there is no kick loop. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Member
|
We don't want to use a modal, and kicking people would not work well either. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make a modal to type it in and kicks them until they enter it and re-adds them once they type it in so people don't spam in #mitochondria-is-the-powerhouse-of-the-vercell