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 on Mattermost: {failed.reason}", effects)