From 39231d1b42b4f706d2864a9124f4ed7022ff9ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Fri, 2 Sep 2022 22:43:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E4=BF=AE=E6=94=B9=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=8E=A9=E5=AE=B6=E7=BB=9F=E8=AE=A1=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E5=B9=B6=E6=B7=BB=E5=8A=A0=E8=8D=89=E7=A5=9E=E7=9E=B3=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/{uid.py => userstats.py} | 9 +++++---- resources/genshin/info/info.html | 4 ++++ 2 files changed, 9 insertions(+), 4 deletions(-) rename plugins/genshin/{uid.py => userstats.py} (96%) diff --git a/plugins/genshin/uid.py b/plugins/genshin/userstats.py similarity index 96% rename from plugins/genshin/uid.py rename to plugins/genshin/userstats.py index d8a49db5..6df1a407 100644 --- a/plugins/genshin/uid.py +++ b/plugins/genshin/userstats.py @@ -21,8 +21,8 @@ from utils.service.inject import inject @listener_plugins_class() -class Uid(BasePlugins): - """玩家查询""" +class UserStats(BasePlugins): + """玩家统计查询""" COMMAND_RESULT, = range(10200, 10201) @@ -37,8 +37,8 @@ class Uid(BasePlugins): @classmethod def create_handlers(cls): uid = cls() - return [CommandHandler('uid', uid.command_start, block=True), - MessageHandler(filters.Regex(r"^玩家查询(.*)"), uid.command_start, block=True)] + return [CommandHandler('stats', uid.command_start, block=True), + MessageHandler(filters.Regex(r"^玩家统计查询(.*)"), uid.command_start, block=True)] async def _start_get_user_info(self, client: Client, uid: int = -1) -> bytes: if uid == -1: @@ -85,6 +85,7 @@ class Uid(BasePlugins): "anemoculus_number": user_info.stats.anemoculi, "geoculus_number": user_info.stats.geoculi, "electroculus_number": user_info.stats.electroculi, + "dendroculi_number": user_info.stats.dendroculi, "world_exploration_list": [], "teapot_level": user_info.teapot.level, "teapot_comfort_num": user_info.teapot.comfort, diff --git a/resources/genshin/info/info.html b/resources/genshin/info/info.html index b724feab..ca027e5c 100644 --- a/resources/genshin/info/info.html +++ b/resources/genshin/info/info.html @@ -90,6 +90,10 @@
雷神瞳
{{electroculus_number}}
+
+
草神瞳
+
{{dendroculi_number}}
+