mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +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
|