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

Function preset

tests/plugins/matcher/matcher_process.py:64–65  ·  view source on GitHub ↗
(matcher: Matcher, message: Message = EventMessage())

Source from the content-addressed store, hash-verified

62
63@test_preset.handle()
64async def preset(matcher: Matcher, message: Message = EventMessage()):
65 matcher.set_arg("a", message)
66
67
68@test_preset.got("a")

Callers

nothing calls this directly

Calls 2

EventMessageFunction · 0.90
set_argMethod · 0.80

Tested by

no test coverage detected