Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for forwarded messages to autowarn checks #263

Merged

Conversation

FloatingMilkshake
Copy link
Collaborator

Adds support for forwarded messages; their content (& the content of any associated embeds—and embeds that are not part of a forwarded message!) are now run through all autowarn checks (I think I got all of them). Forwarded messages are not passed through "passive" checks, like looking for CTS pings for #cts-support-feed.

The content of the original message, the content of any forwarded messages, and any text in all embeds are concatenated into a long string that is passed through filters in place of message.Content.

Closes #234

Copy link
Owner

@Erisa Erisa left a comment

Choose a reason for hiding this comment

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

Thanks! This turned out to be deceptively simple, there isn't really anything to complain about.

@FloatingMilkshake FloatingMilkshake merged commit 258bcaf into main Feb 7, 2025
2 checks passed
@FloatingMilkshake FloatingMilkshake deleted the floatingmilkshake/fowarded-msg-autowarn-checks branch February 7, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Todo: Support for forwarded messages
2 participants