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