aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-18 22:53:36 -0700
committerFuwn <[email protected]>2025-09-18 22:53:36 -0700
commitf7a44ebf5a8e9af548eabe5658271faa6286596f (patch)
tree666c3e0d579226603660b39f6ca931431447876c
parentRevert "fix(irm): Image identification and Mod Mail bugs" (diff)
downloadumabot-f7a44ebf5a8e9af548eabe5658271faa6286596f.tar.xz
umabot-f7a44ebf5a8e9af548eabe5658271faa6286596f.zip
Revert "fix(irm): Send removal message as Mod Mail"
This reverts commit 9b419863609b003bba44182c3ac4e0cefd9e7319.
-rw-r--r--src/umabot/rules/intelligent_roleplay_moderator.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/umabot/rules/intelligent_roleplay_moderator.py b/src/umabot/rules/intelligent_roleplay_moderator.py
index 17298e0..90c5fc8 100644
--- a/src/umabot/rules/intelligent_roleplay_moderator.py
+++ b/src/umabot/rules/intelligent_roleplay_moderator.py
@@ -118,13 +118,8 @@ class IntelligentRoleplayModerator(Rule, IntelligentModeratorBase):
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 proper mod mail
- self.subreddit.modmail.create(
- subject=subject,
- body=message,
- recipient=submission.author,
- author_hidden=True
- )
+ # Send mod mail instead of DM
+ self.subreddit.message(subject, message)
self.logger.info(f"Sent art flair change notification to {username}")
except Exception as e:
@@ -147,13 +142,8 @@ class IntelligentRoleplayModerator(Rule, IntelligentModeratorBase):
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 proper mod mail
- self.subreddit.modmail.create(
- subject=subject,
- body=message,
- recipient=submission.author,
- author_hidden=True
- )
+ # Send mod mail instead of DM
+ self.subreddit.message(subject, message)
self.logger.info(f"Sent low-effort removal notification to {username}")
except Exception as e: