Skip to content

feat(discord): clean up spam from verification channel - #105

Open
austeyen wants to merge 2 commits into
mainfrom
austeyen/verification-channel-cleanup
Open

feat(discord): clean up spam from verification channel#105
austeyen wants to merge 2 commits into
mainfrom
austeyen/verification-channel-cleanup

Conversation

@austeyen

Copy link
Copy Markdown
Contributor

Deletes slop from bots and users that persist in discord verification channel. Adds new env DISCORD_VERIFICATION_CHANNEL

@austeyen
austeyen requested review from BK1031 and a lite review from Copilot and removed request for Copilot August 13, 2026 05:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_CHANNEL env 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.

Comment thread discord/commands/verify.go
Comment thread discord/commands/verify.go Outdated
Comment thread discord/commands/handler.go
@austeyen
austeyen force-pushed the austeyen/verification-channel-cleanup branch from c928303 to 9ef9ab5 Compare August 13, 2026 06:22
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.

2 participants