mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-17 16:20:05 +08:00
📝 update doc
This commit is contained in:
parent
c2c8906b7d
commit
593d593a62
@ -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` 加载插件。
|
||||
:::
|
||||
|
||||
## 子插件(嵌套插件)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user