使用 nb plugin install 安装的插件似乎无法生效? #81
Answered
by
mnixry
ninthseason
asked this question in
问答
-
|
例如安装服务器状态查看插件:
能够正常下载,其在pyproject.tmol中[nonebot.plugins]节点处添加了条目:
nonebot.load_builtin_plugins("echo")
# Please DO NOT modify this file unless you know what you are doing!
# As an alternative, you should use command `nb` or modify `pyproject.toml` to load plugins
nonebot.load_from_toml("pyproject.toml")但使用 01-13 14:09:56 [DEBUG] nonebot | Succeeded to load adapter "OneBot V11"
01-13 14:09:56 [SUCCESS] nonebot | Succeeded to import "nonebot.plugins.echo"
01-13 14:09:56 [SUCCESS] nonebot | Running NoneBot...
01-13 14:09:56 [DEBUG] nonebot | Loaded adapters: OneBot V11所有使用 |
Beta Was this translation helpful? Give feedback.
Answered by
mnixry
Jan 13, 2022
Replies: 2 comments 1 reply
-
你可以尝试修改为 |
Beta Was this translation helpful? Give feedback.
1 reply
-
[tool.poetry]
name = "Beta01"
version = "0.1.0"
description = "Beta01"
authors = []
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.7.3"
nonebot2 = "^2.0.0-beta.1"
[tool.poetry.dev-dependencies]
nb-cli = "^0.6.0"
[tool.nonebot]
plugins = ["nonebot_plugin_status"]
plugin_dirs = ["src/plugins"]
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"这应该是你 /cc @yanyongyu |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ninthseason
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这应该是你
pyproject.toml配置文件的正确格式,有大量报错是正常的,因为nonebot_plugin_status尚未适配2.0.0-beta1版本/cc @yanyongyu