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")