-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Automod "action" messages cause subresub messages to be disabled #5589
Comments
This deletion behaviour was originally implemented in #1012. I suspect it was to "delete" (disable) the newly added automod message, but those messages have a defaulted empty message ID so the internal The two solutions I see here are:
|
for option 1, we can rely on the term |
In my opinion, we shouldn't try to delete any message there (option 2). We don't delete any other automod messages either. |
The idea behind the feature is to delete "Block"/"Delete" message iirc |
Thanks guys, If the original reason was to just disable the auto mod action messages, I'm happy to make the code match. |
Slight issue with using the ID from the PubSub messages: the Given that PubSub is on the way out, I'd say it's not worth fixing this until AutoMod messages are ported to EventSub (which looks to have 100% parity to my untrained eye.) I'll spend tonight figuring out how EventSub works in c2 and see if it's something I feel like putting time into - otherwise this can be shelved until a danker gets around to EventSub. Example: [
{
"type": "MESSAGE",
"data": {
"topic": "automod-queue.82674227.82674227",
"message": "{\"type\":\"automod_caught_message\",\"data\":{\"id\":\"2fbf6ea3-26cc-4358-a57b-3b606822ac5a\",\"content_classification\":{\"category\":\"swearing\",\"level\":4},\"message\":{\"content\":{\"text\":\"bugger\",\"fragments\":[{\"text\":\"bugger\",\"automod\":{\"topics\":{\"vulgar\":3}}}]},\"id\":\"2fbf6ea3-26cc-4358-a57b-3b606822ac5a\",\"channel_id\":\"82674227\",\"channel_login\":\"jammehge\",\"sender\":{\"user_id\":\"726078183\",\"login\":\"jammeheg\",\"display_name\":\"jammeheg\",\"chat_color\":\"#8A2BE2\"},\"sent_at\":\"2024-10-01T06:40:00.183214834Z\"},\"reason_code\":\"AutoModCaughtMessageReason\",\"resolver_id\":\"\",\"resolver_login\":\"\",\"status\":\"PENDING\",\"caught_message_reason\":{\"reason\":\"AutoModCaughtMessageReason\",\"automod_failure\":{\"category\":\"swearing\",\"level\":4,\"positions_in_message\":[{\"start_pos\":0,\"end_pos\":5}]},\"blocked_term_failure\":{\"contains_private_term\":false,\"terms_found\":null}}}}"
}
},
{
"type": "MESSAGE",
"data": {
"topic": "automod-queue.82674227.82674227",
"message": "{\"type\":\"automod_caught_message\",\"data\":{\"id\":\"2fbf6ea3-26cc-4358-a57b-3b606822ac5a\",\"content_classification\":{\"category\":\"swearing\",\"level\":4},\"message\":{\"content\":{\"text\":\"bugger\",\"fragments\":[{\"text\":\"bugger\",\"automod\":{\"topics\":{\"vulgar\":3}}}]},\"id\":\"2fbf6ea3-26cc-4358-a57b-3b606822ac5a\",\"channel_id\":\"82674227\",\"channel_login\":\"jammehge\",\"sender\":{\"user_id\":\"726078183\",\"login\":\"jammeheg\",\"display_name\":\"jammeheg\",\"chat_color\":\"#8A2BE2\"},\"sent_at\":\"2024-10-01T06:40:00.183214834Z\"},\"reason_code\":\"\",\"resolver_id\":\"82674227\",\"resolver_login\":\"jammehge\",\"status\":\"ALLOWED\",\"caught_message_reason\":{\"reason\":\"AutoModCaughtMessageReason\",\"automod_failure\":{\"category\":\"swearing\",\"level\":4,\"positions_in_message\":[{\"start_pos\":0,\"end_pos\":5}]},\"blocked_term_failure\":{\"contains_private_term\":false,\"terms_found\":null}}}}"
}
},
{
"type": "MESSAGE",
"data": {
"topic": "chat_moderator_actions.82674227.82674227",
"message": "{\"type\":\"channel_terms_action\",\"data\":{\"type\":\"add_permitted_term\",\"id\":\"d44b3c6b-4aec-4ebf-a029-bd93165a4e9c\",\"text\":\"bugger\",\"requester_id\":\"82674227\",\"requester_login\":\"jammehge\",\"channel_id\":\"82674227\",\"expires_at\":\"2024-10-01T07:40:58.393080886Z\",\"updated_at\":\"2024-10-01T06:40:58.393080128Z\",\"from_automod\":true}}"
}
}
] |
See #4962 for eventsub - I can take a stab at adding those pubsub branches if you'd like |
Checklist
Describe your issue
When an automod action message is received, the last laid out non-PRIVMSG message will be disabled (greyed out)
Screenshots
OS and Chatterino Version
Chatterino 2.5.1 DEBUG (commit 2afa227 modified) built with Qt 5.15.15 Running on Arch Linux, kernel: 6.10.8-zen1-1-zen
The text was updated successfully, but these errors were encountered: