还是随项目启动。解决对象传递问题
This commit is contained in:
8
main.py
8
main.py
@@ -53,11 +53,6 @@ def main(chat_type: int):
|
|||||||
# 秀人网每天自动发pdf
|
# 秀人网每天自动发pdf
|
||||||
robot.onEveryTime("17:30", robot.xiu_ren_pdf_send)
|
robot.onEveryTime("17:30", robot.xiu_ren_pdf_send)
|
||||||
|
|
||||||
# 让机器人一直跑
|
|
||||||
robot.keep_running_and_block_process()
|
|
||||||
|
|
||||||
# 在启动Dashboard的部分
|
|
||||||
|
|
||||||
# 启动Dashboard服务器
|
# 启动Dashboard服务器
|
||||||
dashboard_server = None
|
dashboard_server = None
|
||||||
try:
|
try:
|
||||||
@@ -72,6 +67,9 @@ def main(chat_type: int):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
robot.LOG.error(f"Dashboard服务器启动失败: {e}")
|
robot.LOG.error(f"Dashboard服务器启动失败: {e}")
|
||||||
|
|
||||||
|
# 让机器人一直跑
|
||||||
|
robot.keep_running_and_block_process()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = ArgumentParser()
|
parser = ArgumentParser()
|
||||||
parser.add_argument('-c', type=int, default=0, help=f'选择模型参数序号: {ChatType.help_hint()}')
|
parser.add_argument('-c', type=int, default=0, help=f'选择模型参数序号: {ChatType.help_hint()}')
|
||||||
|
|||||||
Reference in New Issue
Block a user