From 5413689202e51b46ca49822c4c6bf9e34f481af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Sat, 1 Oct 2022 16:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=B7=B1=E6=B8=8A=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9F=A5=E8=AF=A2=E6=98=BE=E7=A4=BAUID=E4=B8=BA=20Non?= =?UTF-8?q?e=20=E7=9A=84=E9=97=AE=E9=A2=98=E5=B9=B6=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=A0=E9=99=A4=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/abyss.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/genshin/abyss.py b/plugins/genshin/abyss.py index 18e92695..a98e91c7 100644 --- a/plugins/genshin/abyss.py +++ b/plugins/genshin/abyss.py @@ -59,7 +59,7 @@ class Abyss(Plugin, BasePlugin): if len(spiral_abyss_info.ranks.most_kills) == 0: raise NoMostKills abyss_data = { - "uid": uid, + "uid": _uid, "max_floor": spiral_abyss_info.max_floor, "total_battles": spiral_abyss_info.total_battles, "total_stars": spiral_abyss_info.total_stars, @@ -119,10 +119,7 @@ class Abyss(Plugin, BasePlugin): self._add_delete_message_job(context, message.chat_id, message.message_id, 10) return except (AbyssUnlocked, NoMostKills): - reply_message = await message.reply_text("本次深渊旅行者还没挑战呢,咕咕咕~~~") - if filters.ChatType.GROUPS.filter(message): - self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id, 10) - self._add_delete_message_job(context, message.chat_id, message.message_id, 10) + await message.reply_text("本次深渊旅行者还没挑战呢,咕咕咕~~~") return await message.reply_chat_action(ChatAction.UPLOAD_PHOTO) png_data = await self.template_service.render('genshin/abyss', "abyss.html", abyss_data,