MCPcopy
hub / github.com/AstrBotDevs/AstrBot / __init__

Method __init__

tests/unit/test_message_tools.py:47–53  ·  view source on GitHub ↗
(self, result_text: str, sent_plain_texts: list[str])

Source from the content-addressed store, hash-verified

45
46class _DummyRespondEvent:
47 def __init__(self, result_text: str, sent_plain_texts: list[str]) -> None:
48 self._extras = {
49 "_send_message_to_user_current_session_plain_texts": sent_plain_texts,
50 }
51 self._result = MessageEventResult().message(result_text)
52 self.send = AsyncMock()
53 self.plugins_name = []
54
55 def get_result(self):
56 """Return the current message result."""

Callers

nothing calls this directly

Calls 2

MessageEventResultClass · 0.90
messageMethod · 0.80

Tested by

no test coverage detected