nonebot2/tests/plugins/param/param_matcher.py

16 lines
325 B
Python
Raw Normal View History

2021-12-20 00:28:02 +08:00
from nonebot.adapters import Event
from nonebot.matcher import Matcher
from nonebot.params import Received, LastReceived
async def matcher(m: Matcher) -> Matcher:
return m
async def receive(e: Event = Received("test")) -> Event:
return e
async def last_receive(e: Event = LastReceived()) -> Event:
return e