mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-07 04:03:45 +08:00
🐛 修复启动错误
This commit is contained in:
parent
f273e97ca4
commit
a8b097e990
@ -1,4 +1,7 @@
|
||||
from gsuid_core.gss import gss
|
||||
import asyncio
|
||||
import threading
|
||||
|
||||
from gsuid_core.logger import logger
|
||||
|
||||
from ..genshinuid_resource import startup
|
||||
from ..genshinuid_xkdata import draw_xk_abyss_img
|
||||
@ -6,9 +9,14 @@ from ..genshinuid_help.draw_help_card import draw_help_img
|
||||
from ..genshinuid_guide.get_abyss_data import generate_data
|
||||
|
||||
|
||||
@gss.on_bot_connect
|
||||
async def all_start():
|
||||
await startup()
|
||||
await draw_xk_abyss_img()
|
||||
await draw_help_img()
|
||||
await generate_data()
|
||||
try:
|
||||
await startup()
|
||||
await draw_xk_abyss_img()
|
||||
await draw_help_img()
|
||||
await generate_data()
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
|
||||
|
||||
threading.Thread(target=lambda: asyncio.run(all_start()), daemon=True).start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user