📝 update doc

This commit is contained in:
Ju4tCode 2021-05-01 10:53:18 +08:00 committed by GitHub
parent c2c8906b7d
commit 593d593a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ import nonebot
nonebot.init()
# 从 plugin.json 加载插件
load_from_json("plugin.json")
nonebot.load_from_json("plugin.json")
app = nonebot.get_asgi()
@ -122,7 +122,7 @@ import nonebot
nonebot.init()
# 从 pyproject.toml 加载插件
load_from_toml("pyproject.toml")
nonebot.load_from_toml("pyproject.toml")
app = nonebot.get_asgi()
@ -138,7 +138,9 @@ plugins = ["nonebot_plugin_status", "awesome_bot.plugins.xxx"]
plugin_dirs = ["awesome_bot/plugins"]
```
::: tip
nb-cli 默认使用 `pyproject.toml` 加载插件。
:::
## 子插件(嵌套插件)