diff options
| -rw-r--r-- | src/umabot/rules/intelligent_roleplay_moderator.py | 5 | ||||
| -rwxr-xr-x | test_moderator.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/umabot/rules/intelligent_roleplay_moderator.py b/src/umabot/rules/intelligent_roleplay_moderator.py index 8e9582c..1ea0491 100644 --- a/src/umabot/rules/intelligent_roleplay_moderator.py +++ b/src/umabot/rules/intelligent_roleplay_moderator.py @@ -180,7 +180,10 @@ class IntelligentRoleplayModerator(Rule, IntelligentModeratorBase): if formatted_reasoning: message += f"\n\nReasoning: {formatted_reasoning}" - 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!" + # Get the subreddit name for dynamic Discord recommendation + subreddit_name = submission.subreddit.display_name + + 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/{subreddit_name} Discord server! It features a comprehensive layout of channels, forums, roles, bots, events, and more! https://discord.gg/{subreddit_name}\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 brief content removal notification to {username}") diff --git a/test_moderator.py b/test_moderator.py index 3a108e7..c0f1204 100755 --- a/test_moderator.py +++ b/test_moderator.py @@ -443,7 +443,7 @@ def print_results(results: List[Dict[str, Any]], pause: bool = False, moderator: else: print(f" Reasoning: {evaluation['reasoning']}") - print(f" Discord Recommendation: 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") + print(f" Discord Recommendation: If you enjoy active roleplay, join the official Discord server! It features a comprehensive layout of channels, forums, roles, bots, events, and more!") # Add pause between results if requested if pause and i < len(results): |