aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/umabot/rules/intelligent_moderator_base.py4
-rw-r--r--src/umabot/rules/intelligent_roleplay_moderator.py14
2 files changed, 9 insertions, 9 deletions
diff --git a/src/umabot/rules/intelligent_moderator_base.py b/src/umabot/rules/intelligent_moderator_base.py
index 3eddd1b..56035e8 100644
--- a/src/umabot/rules/intelligent_moderator_base.py
+++ b/src/umabot/rules/intelligent_moderator_base.py
@@ -33,7 +33,7 @@ For each post, respond with a JSON object containing:
Guidelines:
- A post should be flaired as "Art" if it's primarily showcasing artwork, images, or visual content with minimal roleplay text
-- A post is "low effort" if it lacks substance, creativity, or meaningful roleplay content
+- A post is "low-effort" if it lacks substance, creativity, or meaningful roleplay content
- Consider factors like: word count, creativity, effort, engagement potential, originality
- Be strict but fair - err on the side of allowing content unless it's clearly low quality
- High confidence (0.8+) for clear cases, lower confidence for borderline cases
@@ -173,7 +173,7 @@ Word Count: {word_count}
# Change flair to Art and notify user (priority over removal)
actions.append("CHANGE_FLAIR_TO_ART")
elif evaluation["is_low_effort"]:
- # Remove low effort post and notify user
+ # Remove low-effort post and notify user
actions.append("REMOVE_POST")
else:
# Post is good quality roleplay - allow it
diff --git a/src/umabot/rules/intelligent_roleplay_moderator.py b/src/umabot/rules/intelligent_roleplay_moderator.py
index 4c00cb2..a81ea88 100644
--- a/src/umabot/rules/intelligent_roleplay_moderator.py
+++ b/src/umabot/rules/intelligent_roleplay_moderator.py
@@ -34,7 +34,7 @@ class IntelligentRoleplayModerator(Rule, IntelligentModeratorBase):
return False # Don't remove, just change flair
elif evaluation["is_low_effort"]:
- # Remove low effort post and notify user
+ # Remove low-effort post and notify user
self._notify_low_effort_removal(submission, evaluation)
return True # Remove the post
@@ -46,7 +46,7 @@ class IntelligentRoleplayModerator(Rule, IntelligentModeratorBase):
return False # Don't remove on error
def get_removal_message(self, submission: praw.models.Submission) -> str:
- """Get removal message for low effort posts."""
+ """Get removal message for low-effort posts."""
return "" # We send mod mail instead of commenting
# Abstract method implementations for IntelligentModeratorBase
@@ -133,10 +133,10 @@ Thank you for understanding!"""
self.logger.error(f"Error sending art flair notification for {submission.id}: {e}")
def _notify_low_effort_removal(self, submission: praw.models.Submission, evaluation: dict) -> None:
- """Send mod mail about low effort removal."""
+ """Send mod mail about low-effort removal."""
try:
username = submission.author.name
- subject = "Your roleplay post has been removed for low effort"
+ subject = "Your roleplay post has been removed for low-effort"
# Format reasoning based on configuration
formatted_reasoning = self._format_reasoning(evaluation)
@@ -166,10 +166,10 @@ If you believe this was done in error, please contact the moderators via Mod Mai
Thank you for understanding!"""
submission.author.message(subject, message)
- self.logger.info(f"Sent low effort removal notification to {username}")
+ self.logger.info(f"Sent low-effort removal notification to {username}")
except Exception as e:
- self.logger.error(f"Error sending low effort notification for {submission.id}: {e}")
+ self.logger.error(f"Error sending low-effort notification for {submission.id}: {e}")
def _format_reasoning(self, evaluation: dict, is_art_flair_change: bool = False) -> str:
"""Format reasoning based on the configured reasoning level."""
@@ -208,7 +208,7 @@ Thank you for understanding!"""
issues.append('no plot development')
if any(word in reasoning_lower for word in ['effort', 'substance', 'content']):
if 'low' in reasoning_lower or 'lack' in reasoning_lower:
- issues.append('low effort')
+ issues.append('low-effort')
if any(word in reasoning_lower for word in ['creativity', 'originality']):
if 'lack' in reasoning_lower or 'no' in reasoning_lower:
issues.append('lacks creativity')