mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 03:32:33 +08:00
feat: 启动时检查colorlog并提示
This commit is contained in:
parent
26064e870b
commit
425ab29779
12
main.py
12
main.py
|
@ -1,16 +1,16 @@
|
|||
import asyncio
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
|
||||
import logging
|
||||
import colorlog
|
||||
|
||||
from mirai.bot import MiraiRunner
|
||||
|
||||
import sys
|
||||
try:
|
||||
import colorlog
|
||||
except ImportError:
|
||||
print("未安装colorlog,请查看 https://github.com/RockChinQ/qcg-installer/issues/15")
|
||||
sys.exit(1)
|
||||
import colorlog
|
||||
|
||||
sys.path.append(".")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user