From e844872b09438e19d7e8d1100c65215c321db83a Mon Sep 17 00:00:00 2001 From: KanchiMoe <5897898+KanchiMoe@users.noreply.github.com> Date: Sun, 19 May 2024 16:08:55 +0100 Subject: [PATCH] update single emoji removal (#54) --- Anti-spam/Single_clown_emoji.yaml | 19 ------------------- Anti-spam/single_emoji_no_value.yaml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 19 deletions(-) delete mode 100644 Anti-spam/Single_clown_emoji.yaml create mode 100644 Anti-spam/single_emoji_no_value.yaml diff --git a/Anti-spam/Single_clown_emoji.yaml b/Anti-spam/Single_clown_emoji.yaml deleted file mode 100644 index fecc60c..0000000 --- a/Anti-spam/Single_clown_emoji.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- - # Single clown face emoji remover - removes comments only contain the clown emoji and nothing else. -type: comment -body (regex): ["^\\U0001F921$", "^\\🤡$"] -action: remove -action_reason: "Remove comment only containing the clown face emoji by /u/{{author}}" -message_subject: "Your {{kind}} was removed from /r/{{subreddit}}" -message: | - Hi /u/{{author}}. Thank you for your comment in /r/{{subreddit}}. You can [find it here]({{permalink}}). - - However, it has been removed, as only commenting "🤡" does not add anything to the conversation. - - We encourage meaningful contributions and constructive discussions in /r/{{subreddit}}. If you have any questions or would like to share your thoughts on the topic, please feel free to do so in a more detailed manner. - - ***** - - _^Triggered ^incorrectly? ^^\(ie, ^^comment ^^does ^^not ^^only ^^contain ^^"🤡"\) ^[Let](https://www.reddit.com/message/compose/?to=/r/{{subreddit}}) ^[us](https://www.reddit.com/message/compose/?to=/r/{{subreddit}}) ^[know.](https://www.reddit.com/message/compose/?to=/r/{{subreddit}})_ -moderators_exempt: false ---- diff --git a/Anti-spam/single_emoji_no_value.yaml b/Anti-spam/single_emoji_no_value.yaml new file mode 100644 index 0000000..36749ae --- /dev/null +++ b/Anti-spam/single_emoji_no_value.yaml @@ -0,0 +1,23 @@ +--- +# Single emoji remover - removes comments only contain some single emojis +type: comment +body (regex): [ + "^\\U0001F921$", "^\\🤡$", # Clown + "^\\uE412$", "^\\$", # Crying 1 + "^\\U0001F602$", "^\\$" # Crying 2 +] +action: remove +action_reason: "Remove comment only containing single emoji. Author [/u/{{author}}]. Match [{{match}}]" +message_subject: "Your {{kind}} was removed from /r/{{subreddit}}" +message: | + Hi /u/{{author}}, [**your {{kind}}**]({{permalink}}) in /r/{{subreddit}} was removed for the following reasons: + + > **Only commenting "{{match}}" does not add anything to the conversation.** + + > We encourage meaningful contributions and constructive discussions in /r/{{subreddit}}. If you have any questions or would like to share your thoughts on the topic, please feel free to do so in a more detailed manner. + + ***** + + _^Triggered ^incorrectly? ^^\(ie, ^^comment ^^does ^^not ^^only ^^contain ^^"{{match}}"\) ^[Let](https://www.reddit.com/message/compose/?to=/r/{{subreddit}}) ^[us](https://www.reddit.com/message/compose/?to=/r/{{subreddit}}) ^[know.](https://www.reddit.com/message/compose/?to=/r/{{subreddit}})_ +moderators_exempt: false +---