aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-18 11:47:02 -0700
committerFuwn <[email protected]>2025-09-18 11:47:02 -0700
commitb54f51751e1af999d091f687574ab89897ce0329 (patch)
tree666c3e0d579226603660b39f6ca931431447876c
parentfeat(roleplay_media_required): Update removal message (diff)
downloadumabot-b54f51751e1af999d091f687574ab89897ce0329.tar.xz
umabot-b54f51751e1af999d091f687574ab89897ce0329.zip
fix(irm): Removal message line spacing
-rw-r--r--src/umabot/rules/intelligent_roleplay_moderator.py32
1 files changed, 4 insertions, 28 deletions
diff --git a/src/umabot/rules/intelligent_roleplay_moderator.py b/src/umabot/rules/intelligent_roleplay_moderator.py
index c1a85eb..90c5fc8 100644
--- a/src/umabot/rules/intelligent_roleplay_moderator.py
+++ b/src/umabot/rules/intelligent_roleplay_moderator.py
@@ -110,21 +110,13 @@ class IntelligentRoleplayModerator(Rule, IntelligentModeratorBase):
# Format reasoning based on configuration (never include for art flair changes)
formatted_reasoning = self._format_reasoning(evaluation, is_art_flair_change=True)
- message = f"""Hello u/{username},
-
-Your roleplay post has been automatically re-flaired as "Art" because it appears to be primarily showcasing artwork or visual content rather than roleplay."""
+ message = f"Hello u/{username},\n\nYour roleplay post has been automatically re-flaired as \"Art\" because it appears to be primarily showcasing artwork or visual content rather than roleplay."
# Add reasoning if configured
if formatted_reasoning:
message += f"\n\nReasoning: {formatted_reasoning}"
- message += f"""
-
-Post link: https://reddit.com{submission.permalink}
-
-If you believe this was done in error, please contact the moderators via Mod Mail.
-
-Thank you for understanding!"""
+ message += f"\n\nPost link: https://reddit.com{submission.permalink}\n\nIf you believe this was done in error, please contact the moderators via Mod Mail.\n\nThank you for understanding!"
# Send mod mail instead of DM
self.subreddit.message(subject, message)
@@ -142,29 +134,13 @@ Thank you for understanding!"""
# Format reasoning based on configuration
formatted_reasoning = self._format_reasoning(evaluation)
- message = f"""Hello u/{username},
-
-Your roleplay post has been removed because it was determined to be low-effort content."""
+ message = f"Hello u/{username},\n\nYour roleplay post has been removed because it was determined to be low-effort content."
# Add reasoning if configured
if formatted_reasoning:
message += f"\n\nReasoning: {formatted_reasoning}"
- message += f"""
-
-Post link: https://reddit.com{submission.permalink}
-
-To improve your roleplay posts, consider:
-- Adding more detailed descriptions
-- Creating engaging scenarios
-- Including meaningful character interactions
-- Ensuring your content adds value to the community
-
-If you enjoy active roleplay, join the official r/okbuddyumamusume Discord server! It features a comprehensive layout of channels, forums, roles, bots, events, and more! https://discord.gg/okbuddyumamusume
-
-If you believe this was done in error, please contact the moderators via Mod Mail.
-
-Thank you for understanding!"""
+ message += f"\n\nPost link: https://reddit.com{submission.permalink}\n\nTo improve your roleplay posts, consider:\n- Adding more detailed descriptions\n- Creating engaging scenarios\n- Including meaningful character interactions\n- Ensuring your content adds value to the community\n\nIf you enjoy active roleplay, join the official r/okbuddyumamusume Discord server! It features a comprehensive layout of channels, forums, roles, bots, events, and more! https://discord.gg/okbuddyumamusume\n\nIf you believe this was done in error, please contact the moderators via Mod Mail.\n\nThank you for understanding!"
# Send mod mail instead of DM
self.subreddit.message(subject, message)