MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / test_command

Method test_command

tests/fixtures/plugins/fixture_plugin.py:24–26  ·  view source on GitHub ↗

测试命令处理器。

(self, event: AstrMessageEvent)

Source from the content-addressed store, hash-verified

22
23 @filter.command("test_cmd")
24 async def test_command(self, event: AstrMessageEvent) -> None:
25 """测试命令处理器。"""
26 event.set_result(MessageEventResult().message("测试命令执行成功"))
27
28 @llm_tool("test_tool")
29 async def test_llm_tool(self, query: str) -> str:

Callers

nothing calls this directly

Calls 3

MessageEventResultClass · 0.90
set_resultMethod · 0.80
messageMethod · 0.80

Tested by

no test coverage detected