From c1dd3a53f4d1587c00066b0bd997a43367d44685 Mon Sep 17 00:00:00 2001 From: Chenric <91937041+ChenXu233@users.noreply.github.com> Date: Tue, 9 Jul 2024 19:57:05 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20:bug:=20nickname=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_dialectlist/__init__.py | 1 + nonebot_plugin_dialectlist/template/rank_template.j2 | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nonebot_plugin_dialectlist/__init__.py b/nonebot_plugin_dialectlist/__init__.py index 41af1f3..11017a3 100644 --- a/nonebot_plugin_dialectlist/__init__.py +++ b/nonebot_plugin_dialectlist/__init__.py @@ -231,6 +231,7 @@ async def handle_rank( for i in rank: if user_info := await get_user_info(bot, event, user_id=str(i[0])): + logger.debug(user_info) user_nickname = user_info.user_displayname\ if user_info.user_displayname\ else user_info.user_name\ diff --git a/nonebot_plugin_dialectlist/template/rank_template.j2 b/nonebot_plugin_dialectlist/template/rank_template.j2 index 0c23982..4768630 100644 --- a/nonebot_plugin_dialectlist/template/rank_template.j2 +++ b/nonebot_plugin_dialectlist/template/rank_template.j2 @@ -19,7 +19,7 @@
-

第{{ i.user_index }}名:{{ i.user_name }}

+

第{{ i.user_index }}名:{{ i.user_nickname }}

diff --git a/pyproject.toml b/pyproject.toml index e5d0d85..01a4c35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-plugin-dialectlist" -version = "2.1.6" +version = "2.1.7" description = "看看你群群友有多能说" authors = [ {name = "Chen_Xu233", email = "woyerpa@outlook.com"},