feat(discord): clean up spam from verification channel - #105
Open
austeyen wants to merge 2 commits into
Open
Conversation
austeyen
requested review from
BK1031
and
a lite review from Copilot
and removed request for
Copilot
August 13, 2026 05:29
There was a problem hiding this comment.
Pull request overview
This PR introduces a configurable “verification channel” gate for the Discord bot, intended to automatically delete non-verification chatter in a specific channel and prompt users to run the verify command. It adds a new environment variable to configure the channel and wires the enforcement into the message handler.
Changes:
- Add
DISCORD_VERIFICATION_CHANNELenv var to Discord config. - Log whether the verification-channel gate is enabled/disabled at startup.
- Add message enforcement that deletes non-verify messages in the configured channel and posts a short-lived reminder.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| discord/config/config.go | Adds DiscordVerificationChannel env var to config. |
| discord/config/verify.go | Logs whether DISCORD_VERIFICATION_CHANNEL is set (gate enabled/disabled). |
| discord/commands/verify.go | Introduces enforceVerificationChannel helper to delete non-verify messages and remind users. |
| discord/commands/handler.go | Calls verification-channel enforcement from the message handler. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
austeyen
force-pushed
the
austeyen/verification-channel-cleanup
branch
from
August 13, 2026 06:22
c928303 to
9ef9ab5
Compare
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.
Deletes slop from bots and users that persist in discord verification channel. Adds new env
DISCORD_VERIFICATION_CHANNEL