Uh oh!
There was an error while loading. Please reload this page.
feat(discord): clean up spam from verification channel - #105
Conversation
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
c928303 to
9ef9ab5Compare
Deletes slop from bots and users that persist in discord verification channel. Adds new env
DISCORD_VERIFICATION_CHANNEL