Skip to content

Handle spoiler edits in messages#46

Merged
BK1031 merged 1 commit intomainfrom
cursor/handle-spoiler-edits-in-messages-d435
Aug 14, 2025
Merged

Handle spoiler edits in messages#46
BK1031 merged 1 commit intomainfrom
cursor/handle-spoiler-edits-in-messages-d435

Conversation

@BK1031
Copy link
Copy Markdown
Contributor

@BK1031 BK1031 commented Aug 14, 2025

Adds a Discord message update handler to detect and delete spoilers in edited messages.

This prevents users from circumventing the spoiler filter by editing an already sent message to include spoiler content.


Open in Cursor Open in Web

Co-authored-by: bharat1031 <bharat1031@gmail.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Aug 14, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 14, 2025

Deploy Preview for gr-sentinel canceled.

Name Link
🔨 Latest commit 50a6bbe
🔍 Latest deploy log https://app.netlify.com/projects/gr-sentinel/deploys/689d899ef076ea0008e8cbaa

@BK1031 BK1031 marked this pull request as ready for review August 14, 2025 07:01
@BK1031 BK1031 requested a review from Copilot August 14, 2025 07:01
Copy link
Copy Markdown

Copilot AI left a comment

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 adds functionality to detect and delete spoiler content in edited Discord messages, preventing users from circumventing the spoiler filter by editing already-sent messages to include forbidden content.

  • Adds a new Discord message update event handler (OnMessageUpdate)
  • Implements spoiler detection logic using regex patterns and string matching for edited messages
  • Provides automatic deletion of messages containing spoilers with user notification

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread commands/handler.go
Comment thread commands/handler.go
Comment thread commands/handler.go
Copy link
Copy Markdown
Contributor Author

@BK1031 BK1031 left a comment

Choose a reason for hiding this comment

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

lgtm!

@BK1031 BK1031 enabled auto-merge August 14, 2025 07:03
@BK1031 BK1031 merged commit 4866465 into main Aug 14, 2025
7 checks passed
@BK1031 BK1031 deleted the cursor/handle-spoiler-edits-in-messages-d435 branch August 14, 2025 07:04
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.

4 participants