From d45dd28e1f23f3b08b182c473f2109c99db7c726 Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 27 Mar 2025 12:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=98=AF=E9=9A=8F=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E3=80=82=E8=A7=A3=E5=86=B3=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 37fca4e..d1ba6d6 100644 --- a/main.py +++ b/main.py @@ -53,11 +53,6 @@ def main(chat_type: int): # 秀人网每天自动发pdf robot.onEveryTime("17:30", robot.xiu_ren_pdf_send) - # 让机器人一直跑 - robot.keep_running_and_block_process() - - # 在启动Dashboard的部分 - # 启动Dashboard服务器 dashboard_server = None try: @@ -72,6 +67,9 @@ def main(chat_type: int): except Exception as e: robot.LOG.error(f"Dashboard服务器启动失败: {e}") + # 让机器人一直跑 + robot.keep_running_and_block_process() + if __name__ == "__main__": parser = ArgumentParser() parser.add_argument('-c', type=int, default=0, help=f'选择模型参数序号: {ChatType.help_hint()}')