📝 Docs: 修复插件编写准备文档中的文本错误 (#3746)

Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
This commit is contained in:
Xfjie314
2025-11-11 00:17:16 +08:00
committed by GitHub
parent f7cd888df2
commit 3454c716a9
4 changed files with 36 additions and 12 deletions

View File

@@ -48,8 +48,10 @@ options:
```tree title=Project
📦 awesome-bot
├── 📂 .venv
├── 📂 awesome_bot
│ └── 📂 plugins
├── 📜 .env.prod
├── 📜 pyproject.toml
└── 📜 README.md
```
@@ -91,18 +93,20 @@ options:
$ nb plugin create
[?] 插件名称: weather
[?] 使用嵌套插件? (y/N) N
[?] 输出目录: awesome_bot/plugins
[?] 请输入插件存储位置: awesome_bot/plugins
```
`nb-cli` 会在 `awesome_bot/plugins` 目录下创建一个名为 `weather` 的文件夹,其中包含的文件将在稍后章节中用到。
```tree title=Project
📦 awesome-bot
├── 📂 .venv
├── 📂 awesome_bot
│ └── 📂 plugins
| └── 📂 foo
| └── 📂 weather
| ├── 📜 __init__.py
| └── 📜 config.py
├── 📜 .env.prod
├── 📜 pyproject.toml
└── 📜 README.md
```