🐛 fix 多线程占用数据库的问题

This commit is contained in:
snowy 2024-08-10 23:35:32 +08:00
parent b08c934c78
commit c3fc5d429b

View File

@ -9,6 +9,7 @@ Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
@Software: PyCharm
"""
import json
import os.path
import platform
import requests
@ -52,4 +53,5 @@ def register_bot():
@liteyuki.on_before_start
async def _():
register_bot()
if not os.path.exists("data/liteyuki/liteyuki.json"):
register_bot()