mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🐛 修复 bind 模板 type 错误
This commit is contained in:
@@ -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}')
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user