feat: gate DM inbox interaction behind explicit dm_reply toggle

This commit is contained in:
2026-04-27 21:53:57 +02:00
parent 7b8daa7670
commit 1c38dabe79
2 changed files with 15 additions and 2 deletions

View File

@@ -460,9 +460,13 @@ def start_bot(**kwargs):
target_map = {
"DiscoverNewContent": ["ExploreFeed", "ReelsFeed"],
"NurtureCommunity": ["HomeFeed", "StoriesFeed"],
"SocialReciprocity": ["FollowingList", "MessageInbox"],
"SocialReciprocity": ["FollowingList"],
}
dm_config = configs.get_plugin_config("dm_reply")
if dm_config.get("enabled", False):
target_map["SocialReciprocity"].append("MessageInbox")
import secrets
options = target_map.get(current_desire, ["HomeFeed"])
@@ -860,7 +864,11 @@ def _run_zero_latency_feed_loop(
elif governance_decision == "CHECK_CURIOSITY":
logger.info("👀 [Curiosity] Spontaneously checking DMs / Notifications...")
explore_target = random.choice(["MessageInbox", "Notifications"])
dm_config = configs.get_plugin_config("dm_reply")
if dm_config.get("enabled", False):
explore_target = random.choice(["MessageInbox", "Notifications"])
else:
explore_target = "Notifications"
if explore_target == "MessageInbox":
nav_graph.do("tap direct message icon inbox")

View File

@@ -89,6 +89,11 @@ telegram-reports: false # for using telegram-reports you have also to configure
interactions-count: 30-40
likes-count: 1-2
likes-percentage: 100
plugins:
dm_reply:
enabled: false # Generates AI replies to unread DMs
stories-count: 1-2
stories-percentage: 30-40
carousel-count: 2-3