MCPcopy
hub / github.com/nonebot/nonebot2 / handle_echo

Function handle_echo

nonebot/plugins/echo.py:21–23  ·  view source on GitHub ↗
(message: Message = CommandArg())

Source from the content-addressed store, hash-verified

19
20@echo.handle()
21async def handle_echo(message: Message = CommandArg()):
22 if any((not seg.is_text()) or str(seg) for seg in message):
23 await echo.send(message=message)

Callers

nothing calls this directly

Calls 3

CommandArgFunction · 0.90
is_textMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected