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'
|
autoupdate_commit_msg: ':arrow_up: auto update by pre-commit hooks'
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.15.1
|
rev: v0.15.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix, --exit-non-zero-on-fix]
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
|
|||||||
@@ -33,6 +33,11 @@ class Distinguishment(BaseModel):
|
|||||||
type: str
|
type: str
|
||||||
|
|
||||||
|
|
||||||
|
class OldUsernames(BaseModel):
|
||||||
|
username: str
|
||||||
|
ts: datetime
|
||||||
|
|
||||||
|
|
||||||
class Data(BaseModel):
|
class Data(BaseModel):
|
||||||
id: str = Field(default=..., alias='_id')
|
id: str = Field(default=..., alias='_id')
|
||||||
username: str
|
username: str
|
||||||
@@ -65,6 +70,7 @@ class Data(BaseModel):
|
|||||||
achievements: list[int]
|
achievements: list[int]
|
||||||
ar: int
|
ar: int
|
||||||
ar_counts: ArCounts
|
ar_counts: ArCounts
|
||||||
|
oldusernames: list[OldUsernames]
|
||||||
|
|
||||||
|
|
||||||
class UserInfoSuccess(BaseSuccessModel):
|
class UserInfoSuccess(BaseSuccessModel):
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ async def _(nb_user: User, event_session: Uninfo, interface: QryItrface):
|
|||||||
raw=await render_image(
|
raw=await render_image(
|
||||||
Bind(
|
Bind(
|
||||||
platform='TETR.IO',
|
platform='TETR.IO',
|
||||||
type='unlink',
|
type='unbind',
|
||||||
user=People(
|
user=People(
|
||||||
avatar=str(
|
avatar=str(
|
||||||
URL(f'http://{netloc}/host/resource/tetrio/avatars/{user.ID}')
|
URL(f'http://{netloc}/host/resource/tetrio/avatars/{user.ID}')
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ async def _(
|
|||||||
raw=await render_image(
|
raw=await render_image(
|
||||||
Bind(
|
Bind(
|
||||||
platform='TOP',
|
platform='TOP',
|
||||||
type='unlink',
|
type='unbind',
|
||||||
user=People(
|
user=People(
|
||||||
avatar=await get_avatar(
|
avatar=await get_avatar(
|
||||||
event_session.user,
|
event_session.user,
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ async def _(
|
|||||||
raw=await render_image(
|
raw=await render_image(
|
||||||
Bind(
|
Bind(
|
||||||
platform='TOS',
|
platform='TOS',
|
||||||
type='unlink',
|
type='unbind',
|
||||||
user=People(
|
user=People(
|
||||||
avatar=await get_avatar(event_session.user, 'Data URI', None),
|
avatar=await get_avatar(event_session.user, 'Data URI', None),
|
||||||
name=user.name,
|
name=user.name,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class Bind(Base):
|
|||||||
return 'v1/binding'
|
return 'v1/binding'
|
||||||
|
|
||||||
platform: Literal['TETR.IO', 'TOP', 'TOS']
|
platform: Literal['TETR.IO', 'TOP', 'TOS']
|
||||||
type: Literal['success', 'unknown', 'unlink', 'unverified', 'error']
|
type: Literal['success', 'unknown', 'unbind', 'unverified', 'error']
|
||||||
user: People
|
user: People
|
||||||
bot: People
|
bot: People
|
||||||
prompt: str
|
prompt: str
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "nonebot-plugin-tetris-stats"
|
name = "nonebot-plugin-tetris-stats"
|
||||||
version = "1.12.0"
|
version = "1.12.1"
|
||||||
description = "一款基于 NoneBot2 的用于查询 Tetris 相关游戏数据的插件"
|
description = "一款基于 NoneBot2 的用于查询 Tetris 相关游戏数据的插件"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "shoucandanghehe", email = "wallfjjd@gmail.com" }]
|
authors = [{ name = "shoucandanghehe", email = "wallfjjd@gmail.com" }]
|
||||||
@@ -168,7 +168,7 @@ reportImplicitAbstractClass = 'error'
|
|||||||
enableTypeIgnoreComments = false
|
enableTypeIgnoreComments = false
|
||||||
|
|
||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "1.12.0"
|
current_version = "1.12.1"
|
||||||
tag = true
|
tag = true
|
||||||
sign_tags = true
|
sign_tags = true
|
||||||
tag_name = "{new_version}"
|
tag_name = "{new_version}"
|
||||||
|
|||||||
Reference in New Issue
Block a user