mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6f3f6bda1d | |||
|
|
367ead2ff5 | ||
|
|
7cfe6593f2 | ||
| 67058a1492 | |||
| c4ab6badbc | |||
|
|
52bfd30ec5 | ||
|
|
7eaf551dd0 |
@@ -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]
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user