Compare commits

...

7 Commits
1.12.0 ... main

Author SHA1 Message Date
6f3f6bda1d 🔖 1.12.1 2026-03-04 18:58:30 +08:00
pre-commit-ci[bot]
367ead2ff5 ⬆️ auto update by pre-commit hooks (#600)
Some checks failed
Code Coverage / Test (macos-latest, 3.10) (push) Has been cancelled
Code Coverage / Test (macos-latest, 3.11) (push) Has been cancelled
Code Coverage / Test (macos-latest, 3.12) (push) Has been cancelled
Code Coverage / Test (macos-latest, 3.13) (push) Has been cancelled
Code Coverage / Test (macos-latest, 3.14) (push) Has been cancelled
Code Coverage / Test (ubuntu-latest, 3.10) (push) Has been cancelled
Code Coverage / Test (ubuntu-latest, 3.11) (push) Has been cancelled
Code Coverage / Test (ubuntu-latest, 3.12) (push) Has been cancelled
Code Coverage / Test (ubuntu-latest, 3.13) (push) Has been cancelled
Code Coverage / Test (ubuntu-latest, 3.14) (push) Has been cancelled
Code Coverage / Test (windows-latest, 3.10) (push) Has been cancelled
Code Coverage / Test (windows-latest, 3.11) (push) Has been cancelled
Code Coverage / Test (windows-latest, 3.12) (push) Has been cancelled
Code Coverage / Test (windows-latest, 3.13) (push) Has been cancelled
Code Coverage / Test (windows-latest, 3.14) (push) Has been cancelled
TypeCheck / TypeCheck (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Code Coverage / check (push) Has been cancelled
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.2 → v0.15.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.2...v0.15.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-04 03:46:39 +08:00
renovate[bot]
7cfe6593f2 ⬆️ Lock file maintenance (#599)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-04 03:46:14 +08:00
67058a1492 🐛 修复 bind 模板 type 错误 2026-03-04 03:18:15 +08:00
c4ab6badbc TETR.IO UserInfo 添加 oldusernames 字段 2026-03-04 02:58:57 +08:00
pre-commit-ci[bot]
52bfd30ec5 ⬆️ auto update by pre-commit hooks (#598)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.1 → v0.15.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.1...v0.15.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-02-24 23:26:39 +08:00
renovate[bot]
7eaf551dd0 ⬆️ Lock file maintenance (#595)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-24 01:31:34 +08:00
8 changed files with 494 additions and 470 deletions

View File

@@ -7,7 +7,7 @@ ci:
autoupdate_commit_msg: ':arrow_up: auto update by pre-commit hooks'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
rev: v0.15.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

View File

@@ -33,6 +33,11 @@ class Distinguishment(BaseModel):
type: str
class OldUsernames(BaseModel):
username: str
ts: datetime
class Data(BaseModel):
id: str = Field(default=..., alias='_id')
username: str
@@ -65,6 +70,7 @@ class Data(BaseModel):
achievements: list[int]
ar: int
ar_counts: ArCounts
oldusernames: list[OldUsernames]
class UserInfoSuccess(BaseSuccessModel):

View File

@@ -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}')

View File

@@ -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,

View File

@@ -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,

View File

@@ -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

View File

@@ -2,7 +2,7 @@
[project]
name = "nonebot-plugin-tetris-stats"
version = "1.12.0"
version = "1.12.1"
description = "一款基于 NoneBot2 的用于查询 Tetris 相关游戏数据的插件"
readme = "README.md"
authors = [{ name = "shoucandanghehe", email = "wallfjjd@gmail.com" }]
@@ -168,7 +168,7 @@ reportImplicitAbstractClass = 'error'
enableTypeIgnoreComments = false
[tool.bumpversion]
current_version = "1.12.0"
current_version = "1.12.1"
tag = true
sign_tags = true
tag_name = "{new_version}"

944
uv.lock generated

File diff suppressed because it is too large Load Diff