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}")