From 1dbb86ab7313c4c5f31570a59f593803c2b7436d Mon Sep 17 00:00:00 2001 From: liuwei Date: Sun, 27 Apr 2025 10:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 324a4ee..28f1a95 100644 --- a/main.py +++ b/main.py @@ -69,8 +69,11 @@ def main(chat_type: int): robot.LOG.info(f"Dashboard服务器已在 http://{dashboard_server.host}:{dashboard_server.port} 启动") except Exception as e: robot.LOG.error(f"Dashboard服务器启动失败: {e}") - - # gewe_client.client_set_callback() + try: + time.sleep(10) + gewe_client.client_set_callback() + except Exception as e: + robot.LOG.error(f"client_set_callback error: {e}") # 让机器人一直跑 robot.keep_running_and_block_process()