From 67058a14923c834d8b56707ebad681bd42a2fe2a Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Wed, 4 Mar 2026 03:18:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20bind=20?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=20type=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/games/tetrio/unbind.py | 2 +- nonebot_plugin_tetris_stats/games/top/unbind.py | 2 +- nonebot_plugin_tetris_stats/games/tos/unbind.py | 2 +- nonebot_plugin_tetris_stats/utils/render/schemas/bind.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nonebot_plugin_tetris_stats/games/tetrio/unbind.py b/nonebot_plugin_tetris_stats/games/tetrio/unbind.py index f84424b..e5ba757 100644 --- a/nonebot_plugin_tetris_stats/games/tetrio/unbind.py +++ b/nonebot_plugin_tetris_stats/games/tetrio/unbind.py @@ -56,7 +56,7 @@ async def _(nb_user: User, event_session: Uninfo, interface: QryItrface): raw=await render_image( Bind( platform='TETR.IO', - type='unlink', + type='unbind', user=People( avatar=str( URL(f'http://{netloc}/host/resource/tetrio/avatars/{user.ID}') diff --git a/nonebot_plugin_tetris_stats/games/top/unbind.py b/nonebot_plugin_tetris_stats/games/top/unbind.py index eeb10d0..e848952 100644 --- a/nonebot_plugin_tetris_stats/games/top/unbind.py +++ b/nonebot_plugin_tetris_stats/games/top/unbind.py @@ -47,7 +47,7 @@ async def _( raw=await render_image( Bind( platform='TOP', - type='unlink', + type='unbind', user=People( avatar=await get_avatar( event_session.user, diff --git a/nonebot_plugin_tetris_stats/games/tos/unbind.py b/nonebot_plugin_tetris_stats/games/tos/unbind.py index f50350e..3a7c8af 100644 --- a/nonebot_plugin_tetris_stats/games/tos/unbind.py +++ b/nonebot_plugin_tetris_stats/games/tos/unbind.py @@ -46,7 +46,7 @@ async def _( raw=await render_image( Bind( platform='TOS', - type='unlink', + type='unbind', user=People( avatar=await get_avatar(event_session.user, 'Data URI', None), name=user.name, diff --git a/nonebot_plugin_tetris_stats/utils/render/schemas/bind.py b/nonebot_plugin_tetris_stats/utils/render/schemas/bind.py index cc3595f..6052cb1 100644 --- a/nonebot_plugin_tetris_stats/utils/render/schemas/bind.py +++ b/nonebot_plugin_tetris_stats/utils/render/schemas/bind.py @@ -12,7 +12,7 @@ class Bind(Base): return 'v1/binding' platform: Literal['TETR.IO', 'TOP', 'TOS'] - type: Literal['success', 'unknown', 'unlink', 'unverified', 'error'] + type: Literal['success', 'unknown', 'unbind', 'unverified', 'error'] user: People bot: People prompt: str