mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-22 20:17:39 +08:00
🐛 fix 多线程占用数据库的问题
This commit is contained in:
parent
b08c934c78
commit
c3fc5d429b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user