📝 Docs: 修正教程中部分 import 缺失的问题 (#1927)

Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
This commit is contained in:
Well404
2023-04-16 18:46:29 +08:00
committed by GitHub
parent 1b2f560ad7
commit 96f0daf535
2 changed files with 6 additions and 3 deletions

View File

@ -26,8 +26,9 @@ import Messenger from "@site/src/components/Messenger";
例如,我们可以继续改进上一章节中的 `weather` 插件,使其可以获取到 `天气` 命令的地名参数,并根据地名返回天气信息。
```python {8,10} title=weather/__init__.py
```python {9,11} title=weather/__init__.py
from nonebot import on_command
from nonebot.rule import to_me
from nonebot.adapters import Message
from nonebot.params import CommandArg