diff options
| author | Fuwn <[email protected]> | 2025-10-04 14:18:16 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-10-04 14:18:16 -0700 |
| commit | 5cf1d2addab10d3d8feddaff9ef1cdbf9d810a66 (patch) | |
| tree | 87608d57a7c9a4fdbd0818e79efc626c07328c0f /src | |
| parent | feat: Support multiple both community subreddits (diff) | |
| download | umabot-5cf1d2addab10d3d8feddaff9ef1cdbf9d810a66.tar.xz umabot-5cf1d2addab10d3d8feddaff9ef1cdbf9d810a66.zip | |
fix(irm): Dynamic subreddit name in strings
Diffstat (limited to 'src')
| -rw-r--r-- | src/umabot/rules/intelligent_roleplay_moderator.py | 5 |
1 files changed, 4 insertions, 1 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}") |