mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 05:17:24 +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
|
@Software: PyCharm
|
||||||
"""
|
"""
|
||||||
import json
|
import json
|
||||||
|
import os.path
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
@ -52,4 +53,5 @@ def register_bot():
|
|||||||
|
|
||||||
@liteyuki.on_before_start
|
@liteyuki.on_before_start
|
||||||
async def _():
|
async def _():
|
||||||
register_bot()
|
if not os.path.exists("data/liteyuki/liteyuki.json"):
|
||||||
|
register_bot()
|
||||||
|
Loading…
Reference in New Issue
Block a user