feat: 启动时检查colorlog并提示

This commit is contained in:
Rock Chin 2023-01-02 13:22:50 +08:00
parent 26064e870b
commit 425ab29779

12
main.py
View File

@ -1,16 +1,16 @@
import asyncio
import os import os
import shutil import shutil
import sys
import threading import threading
import time import time
import logging import logging
import colorlog
from mirai.bot import MiraiRunner
import sys 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(".") sys.path.append(".")