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()}')