diff --git a/plugins/genshin/abyss.py b/plugins/genshin/abyss.py index fd732b2..24d7ca1 100644 --- a/plugins/genshin/abyss.py +++ b/plugins/genshin/abyss.py @@ -179,7 +179,7 @@ class Abyss(Plugin, BasePlugin): await message.reply_chat_action(ChatAction.UPLOAD_PHOTO) for group in ArkoWrapper(images).map(InputMediaPhoto).group(10): # 每 10 张图片分一个组 - await message.reply_media_group(list(group), allow_sending_without_reply=True) + await message.reply_media_group(list(group), allow_sending_without_reply=True, write_timeout=60) if reply_text is not None: await reply_text.delete() diff --git a/plugins/genshin/ledger.py b/plugins/genshin/ledger.py index 24ecaff..c05f82e 100644 --- a/plugins/genshin/ledger.py +++ b/plugins/genshin/ledger.py @@ -31,10 +31,8 @@ def check_ledger_month(context: CallbackContext) -> int: month = now_time.month args = get_all_args(context) if len(args) >= 1: - month = args[0] - elif isinstance(month, int): - pass - elif re_data := re.findall(r"\d+", str(month)): + month = args[0].replace("月", "") + if re_data := re.findall(r"\d+", str(month)): month = int(re_data[0]) else: num_dict = {"一": 1, "二": 2, "三": 3, "四": 4, "五": 5, "六": 6, "七": 7, "八": 8, "九": 9, "十": 10} diff --git a/plugins/jobs/sign.py b/plugins/jobs/sign.py index e4d90ab..f2d337a 100644 --- a/plugins/jobs/sign.py +++ b/plugins/jobs/sign.py @@ -145,7 +145,7 @@ class SignJob(Plugin): await self.sign_service.update(sign_db) logger.info("执行自动签到完成" if context.job.name == "SignJob" else "执行自动重签完成") if context.job.name == "SignJob": - context.job_queue.run_once(self.sign, when=datetime.time(hour=0, minute=1, second=0), name="SignAgainJob") + context.job_queue.run_once(self.sign, when=60, name="SignAgainJob") elif context.job.name == "SignAgainJob": text = await SignStatus.get_sign_status(self.sign_service) await context.bot.send_message(notice_chat_id, text, parse_mode=ParseMode.HTML)