mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
perf: 启动时提示
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
3
main.py
3
main.py
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user