mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-14 16:06:54 +00:00
令用法符合格式
This commit is contained in:
@ -240,12 +240,11 @@ async def handle_event(bot: "Bot", event: "Event") -> None:
|
||||
bot: Bot 对象
|
||||
event: Event 对象
|
||||
|
||||
:示例:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
用法:
|
||||
```python
|
||||
import asyncio
|
||||
asyncio.create_task(handle_event(bot, event))
|
||||
```
|
||||
"""
|
||||
show_log = True
|
||||
log_msg = f"<m>{escape_tag(bot.type.upper())} {escape_tag(bot.self_id)}</m> | "
|
||||
|
Reference in New Issue
Block a user