diff options
| author | Fuwn <[email protected]> | 2025-09-17 20:10:19 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-17 20:10:19 -0700 |
| commit | 7a8ced6dcac74fcd598be3872f98e9f99a877e47 (patch) | |
| tree | 9f0bb6aeb3e26a9b13ec7775a4a36cac1776b417 /src | |
| parent | feat(intelligent_moderator): Reasoning levels (diff) | |
| download | umabot-7a8ced6dcac74fcd598be3872f98e9f99a877e47.tar.xz umabot-7a8ced6dcac74fcd598be3872f98e9f99a877e47.zip | |
feat(intelligent_moderator): Don't include reasoning in art re-flairs
Diffstat (limited to 'src')
| -rw-r--r-- | src/umabot/rules/intelligent_roleplay_moderator.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/umabot/rules/intelligent_roleplay_moderator.py b/src/umabot/rules/intelligent_roleplay_moderator.py index ab6f61e..81fda8e 100644 --- a/src/umabot/rules/intelligent_roleplay_moderator.py +++ b/src/umabot/rules/intelligent_roleplay_moderator.py @@ -107,8 +107,8 @@ class IntelligentRoleplayModerator(Rule, IntelligentModeratorBase): username = submission.author.name subject = "Your post flair has been changed to Art" - # Format reasoning based on configuration - formatted_reasoning = self._format_reasoning(evaluation) + # 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}, @@ -169,8 +169,12 @@ Thank you for understanding!""" except Exception as e: self.logger.error(f"Error sending low effort notification for {submission.id}: {e}") - def _format_reasoning(self, evaluation: dict) -> str: + def _format_reasoning(self, evaluation: dict, is_art_flair_change: bool = False) -> str: """Format reasoning based on the configured reasoning level.""" + # Never include reasoning for art flair changes + if is_art_flair_change: + return "" + reasoning_level = self.config.reasoning_level original_reasoning = evaluation.get('reasoning', '') |