Skip to content

Commit

Permalink
🐛 fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Oct 5, 2023
1 parent 28711f0 commit 27cf19f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@Author : yanyongyu
@Date : 2020-09-10 17:12:05
@LastEditors : yanyongyu
@LastEditTime : 2022-09-02 10:00:32
@LastEditTime : 2023-10-05 16:03:12
@Description : Entry File of the Bot
@GitHub : https://github.com/yanyongyu
"""
Expand All @@ -14,7 +14,6 @@
from nonebot.adapters.onebot.v11 import Adapter as ONEBOT_V11_Adapter

nonebot.init()
app = nonebot.get_asgi()

driver = nonebot.get_driver()
driver.register_adapter(GitHubAdapter)
Expand All @@ -25,4 +24,4 @@
nonebot.load_all_plugins(set(config.plugins), set(config.plugin_dirs))

if __name__ == "__main__":
nonebot.run(app="__mp_main__:app")
nonebot.run()
1 change: 1 addition & 0 deletions scripts/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

sys.path.append(str(root))

import bot # noqa: F401
from src.providers.tortoise import tortoise_config

cmd = Command(tortoise_config, app="bot", location=str(root / "migrations"))
Expand Down

0 comments on commit 27cf19f

Please sign in to comment.