perf: 启动时提示

This commit is contained in:
Rock Chin 2023-01-02 12:06:12 +08:00
parent 61cd2bfff3
commit f10c931c09
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,8 @@ import logging
# port: 运行mirai的主机端口 # port: 运行mirai的主机端口
# verifyKey: mirai-api-http的verifyKey # verifyKey: mirai-api-http的verifyKey
# qq: 机器人的QQ号 # qq: 机器人的QQ号
#
# 注意: QQ机器人配置不支持热重载及热更新
mirai_http_api_config = { mirai_http_api_config = {
"adapter": "WebSocketAdapter", "adapter": "WebSocketAdapter",
"host": "localhost", "host": "localhost",

View File

@ -81,7 +81,8 @@ def main(first_time_init=False):
qq_bot_thread = threading.Thread(target=qqbot.bot.run, args=(), daemon=True) qq_bot_thread = threading.Thread(target=qqbot.bot.run, args=(), daemon=True)
qq_bot_thread.start() qq_bot_thread.start()
logging.info('程序启动完成') time.sleep(2)
logging.info('程序启动完成,如长时间未显示 ”成功登录到账号xxxxx“ ,并且不回复消息,请查看 https://github.com/RockChinQ/QChatGPT/issues/37')
while True: while True:
try: try: