From 7a8ced6dcac74fcd598be3872f98e9f99a877e47 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 17 Sep 2025 20:10:19 -0700 Subject: feat(intelligent_moderator): Don't include reasoning in art re-flairs --- src/umabot/rules/intelligent_roleplay_moderator.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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', '') -- cgit v1.2.3