From 5cf1d2addab10d3d8feddaff9ef1cdbf9d810a66 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 4 Oct 2025 14:18:16 -0700 Subject: fix(irm): Dynamic subreddit name in strings --- src/umabot/rules/intelligent_roleplay_moderator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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}") -- cgit v1.2.3