QQ机器人官方插件加载配置方法【beta2版本】

声明:之前写的老版本已经不能用了,请把所有插件更新为最新版本。代码也需要重新迭代更新。

修改文件名:pyproject.toml,以下是我的该文件内容:

[tool.poetry]
name = "bot"
version = "0.1.0"
description = "bot"
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_apscheduler",
    "nonebot_plugin_sentry",

猜你喜欢

转载自blog.csdn.net/weixin_46211269/article/details/125454764