mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
add log and config docs
This commit is contained in:
@ -5,7 +5,7 @@ from nonebot.plugin import on_metaevent
|
||||
from nonebot.typing import Bot, Event
|
||||
|
||||
|
||||
def heartbeat(bot: Bot, event: Event) -> bool:
|
||||
async def heartbeat(bot: Bot, event: Event, state: dict) -> bool:
|
||||
return event.detail_type == "heartbeat"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user