aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-19 16:08:58 -0700
committerFuwn <[email protected]>2025-09-19 16:08:58 -0700
commitb28fc51ef081f80e688e95e47072b21236710b71 (patch)
treea13e42192ee79f139f043c1c60d5412cc3652171 /src
parentfix(irm): Missing media attribute handling (diff)
downloadumabot-b28fc51ef081f80e688e95e47072b21236710b71.tar.xz
umabot-b28fc51ef081f80e688e95e47072b21236710b71.zip
feat: Update strings from roleplay to in character
Diffstat (limited to 'src')
-rw-r--r--src/umabot/config.py2
-rw-r--r--src/umabot/rules/intelligent_moderator_base.py10
-rw-r--r--src/umabot/rules/intelligent_roleplay_moderator.py6
3 files changed, 9 insertions, 9 deletions
diff --git a/src/umabot/config.py b/src/umabot/config.py
index af53e87..6d8ebdc 100644
--- a/src/umabot/config.py
+++ b/src/umabot/config.py
@@ -52,7 +52,7 @@ class Config:
subreddit_name=os.getenv("SUBREDDIT_NAME", ""),
roleplay_message=os.getenv(
"ROLEPLAY_MESSAGE",
- "Your post has been removed. Only one roleplay post is allowed per user."
+ "Your post has been removed. Only one in-character post is allowed per user."
),
check_interval=int(os.getenv("CHECK_INTERVAL", "60")),
max_posts_per_day=int(os.getenv("MAX_POSTS_PER_DAY", "3")),
diff --git a/src/umabot/rules/intelligent_moderator_base.py b/src/umabot/rules/intelligent_moderator_base.py
index 2d04f14..228374c 100644
--- a/src/umabot/rules/intelligent_moderator_base.py
+++ b/src/umabot/rules/intelligent_moderator_base.py
@@ -18,9 +18,9 @@ class IntelligentModeratorBase(ABC):
# Evaluation prompt
self.evaluation_prompt = """
-You are an expert moderator for a roleplay subreddit. Your job is to evaluate roleplay posts and determine:
+You are an expert moderator for an in-character subreddit. Your job is to evaluate in-character posts and determine:
-1. Whether this post would be better flaired as "Art" instead of "Roleplay"
+1. Whether this post would be better flaired as "Art" instead of "In Character"
2. Whether this is low-effort content that should be removed
For each post, respond with a JSON object containing:
@@ -32,8 +32,8 @@ 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 should be flaired as "Art" if it's primarily showcasing artwork, images, or visual content with minimal in-character text
+- A post is "low-effort" if it lacks substance, creativity, or meaningful in-character 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
@@ -99,7 +99,7 @@ Word Count: {word_count}
response = self.openai_client.chat.completions.create(
model="gpt-5-nano",
messages=[
- {"role": "system", "content": "You are an expert roleplay moderator. Always respond with valid JSON only. Do not include any text before or after the JSON object."},
+ {"role": "system", "content": "You are an expert in-character moderator. Always respond with valid JSON only. Do not include any text before or after the JSON object."},
{"role": "user", "content": prompt}
],
max_completion_tokens=2000
diff --git a/src/umabot/rules/intelligent_roleplay_moderator.py b/src/umabot/rules/intelligent_roleplay_moderator.py
index 96e0ed9..7f46640 100644
--- a/src/umabot/rules/intelligent_roleplay_moderator.py
+++ b/src/umabot/rules/intelligent_roleplay_moderator.py
@@ -119,7 +119,7 @@ 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},\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."
+ message = f"Hello u/{username},\n\nYour in-character post has been automatically re-flaired as \"Art\" because it appears to be primarily showcasing artwork or visual content rather than in-character content."
# Add reasoning if configured
if formatted_reasoning:
@@ -142,13 +142,13 @@ class IntelligentRoleplayModerator(Rule, IntelligentModeratorBase):
# Format reasoning based on configuration
formatted_reasoning = self._format_reasoning(evaluation)
- message = f"Hello u/{username},\n\nYour roleplay post has been removed because it was determined to be low-effort content."
+ message = f"Hello u/{username},\n\nYour in-character 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"\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!"
+ message += f"\n\nPost link: https://reddit.com{submission.permalink}\n\nTo improve your in-character 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!"
submission.author.message(subject, message)
self.logger.info(f"Sent low-effort removal notification to {username}")