From 1b7a9ed442df4b67d251dcf44cd57c1a180cbfff Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 19 May 2025 10:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=92=E8=A1=8C=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robot.py b/robot.py index c75b254..73ea8a6 100644 --- a/robot.py +++ b/robot.py @@ -650,7 +650,7 @@ class Robot(Job): try: if is_friday(): games = get_free() - self.send_group_txt_message(games, Feature.EPIC) + asyncio.run(self.send_group_txt_message(games, Feature.EPIC)) except Exception as e: self.LOG.error(f"sendEpicFreeGames error:{e}") @@ -667,7 +667,7 @@ class Robot(Job): self.LOG.info("开始生成PDF,generate_sehuatang_pdf") path = pdf_file_path() # 暂时只发4K群 - self.send_group_file_message(path, Feature.PDF_CAPABILITY) + asyncio.run(self.send_group_file_message(path, Feature.PDF_CAPABILITY)) except Exception as e: self.LOG.error(f"generateSehuatangPdf error:{e}")