Files
claude-config/bin/loop_claude/direct_message.py
T
2026-11-14 22:53:00 +01:00

8 lines
346 B
Python

from loop_effects.effects import Effects, say
def tell(text: str, effects: Effects) -> None:
"""DMs text to the human. Where the DM fails, it says why on stderr and goes on: the DM only copies what the terminal shows, so its failure never stops the loop."""
if failed := effects.dm(text):
say(f"could not DM you: {failed.reason}", effects)