mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-11 14:05:43 +08:00
16 lines
325 B
Python
16 lines
325 B
Python
|
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
|