Skip to content

Commit

Permalink
👷 no orm prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
j1g5awi committed Aug 9, 2024
1 parent 74e7842 commit 4bd111c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docker/.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
DRIVER=~fastapi+~aiohttp

# ORM
ALEMBIC_STARTUP_CHECK

# All4One 的配置
OBIMPL_CONNECTIONS=[{"type":"websocket_rev","url":"ws://127.0.0.1:8080/onebot/v12/"}]
# 自定义加载的 Middleware,默认加载全部
Expand Down
7 changes: 7 additions & 0 deletions docker/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@
nonebot.load_plugin("nonebot_plugin_all4one")

if __name__ == "__main__":
# 不让 orm 弹该死的升级提示
from nonebot_plugin_orm import _init_orm
from nonebot_plugin_orm.migrate import AlembicConfig, upgrade

_init_orm()
upgrade(AlembicConfig())

nonebot.run()

0 comments on commit 4bd111c

Please sign in to comment.