Skip to content

Commit

Permalink
fix: 再次调整加载方法
Browse files Browse the repository at this point in the history
之前 nb datastore upgrade 会报错
  • Loading branch information
he0119 committed Sep 20, 2023
1 parent 6a545a2 commit 0572840
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 0 additions & 13 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,6 @@
driver.register_adapter(RedAdapter)

# 加载插件
nonebot.load_all_plugins(
[
"onebot_qqguild_extension",
"nonebot_plugin_apscheduler",
"nonebot_plugin_saa",
"nonebot_plugin_alconna",
"nonebot_plugin_datastore",
"nonebot_plugin_session",
"nonebot_plugin_userinfo",
"src.user",
],
[],
)
nonebot.load_from_toml("pyproject.toml")

if __name__ == "__main__":
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ adapters = [
]
plugin_dirs = ["src/plugins"]
plugins = [
"onebot_qqguild_extension",
"nonebot_plugin_apscheduler",
"nonebot_plugin_saa",
"nonebot_plugin_alconna",
"nonebot_plugin_datastore",
"nonebot_plugin_session",
"nonebot_plugin_userinfo",
"src.user",
"nonebot_plugin_sentry",
"nonebot_plugin_treehelp",
"nonebot_plugin_wordcloud",
Expand Down

0 comments on commit 0572840

Please sign in to comment.