mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bb4da8accc | |||
| 56e06a7001 | |||
|
|
7c0b3cd240 |
2
.github/workflows/Release.yml
vendored
2
.github/workflows/Release.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: astral-sh/setup-uv@v5
|
- uses: astral-sh/setup-uv@v6
|
||||||
name: Setup UV
|
name: Setup UV
|
||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
|
|||||||
2
.github/workflows/Test.yml
vendored
2
.github/workflows/Test.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup uv
|
- name: Setup uv
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: astral-sh/setup-uv@v6
|
||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
cache-suffix: ${{ env.PYTHON_VERSION }}_${{ env.OS }}
|
cache-suffix: ${{ env.PYTHON_VERSION }}_${{ env.OS }}
|
||||||
|
|||||||
2
.github/workflows/TypeCheck.yml
vendored
2
.github/workflows/TypeCheck.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: astral-sh/setup-uv@v5
|
- uses: astral-sh/setup-uv@v6
|
||||||
name: Setup UV
|
name: Setup UV
|
||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ async def _(nb_user: User, account: Player, event_session: EventSession, bot_inf
|
|||||||
name=bot_info.user_name,
|
name=bot_info.user_name,
|
||||||
),
|
),
|
||||||
prompt='io查我',
|
prompt='io查我',
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ async def _(
|
|||||||
for i in league.data.entries
|
for i in league.data.entries
|
||||||
if isinstance(i, Entry)
|
if isinstance(i, Entry)
|
||||||
],
|
],
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ async def make_query_image_v1(player: Player) -> bytes:
|
|||||||
sprint=sprint_value,
|
sprint=sprint_value,
|
||||||
blitz=blitz_value,
|
blitz=blitz_value,
|
||||||
),
|
),
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ async def make_query_image_v2(player: Player) -> bytes:
|
|||||||
if blitz.data.record is not None
|
if blitz.data.record is not None
|
||||||
else None,
|
else None,
|
||||||
zen=Zen(level=zen.data.level, score=zen.data.score),
|
zen=Zen(level=zen.data.level, score=zen.data.score),
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ async def make_image_v1(latest_data: TETRIOLeagueStats, compare_data: TETRIOLeag
|
|||||||
for i in zip(latest_data.fields, compare_data.fields, strict=True)
|
for i in zip(latest_data.fields, compare_data.fields, strict=True)
|
||||||
},
|
},
|
||||||
updated_at=latest_data.update_time,
|
updated_at=latest_data.update_time,
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
@@ -111,7 +111,7 @@ async def make_image_v2(latest_data: TETRIOLeagueStats, compare_data: TETRIOLeag
|
|||||||
for i in zip(latest_data.fields, compare_data.fields, strict=True)
|
for i in zip(latest_data.fields, compare_data.fields, strict=True)
|
||||||
},
|
},
|
||||||
updated_at=latest_data.update_time,
|
updated_at=latest_data.update_time,
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ async def make_image(rank: ValidRank, latest: TETRIOLeagueStats, compare: TETRIO
|
|||||||
vs_holder=latest_data.high_vs.username.upper(),
|
vs_holder=latest_data.high_vs.username.upper(),
|
||||||
),
|
),
|
||||||
updated_at=latest.update_time.replace(tzinfo=UTC).astimezone(ZoneInfo('Asia/Shanghai')),
|
updated_at=latest.update_time.replace(tzinfo=UTC).astimezone(ZoneInfo('Asia/Shanghai')),
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ async def make_blitz_image(player: Player) -> bytes:
|
|||||||
level=stats.level,
|
level=stats.level,
|
||||||
),
|
),
|
||||||
play_at=blitz.data.record.ts,
|
play_at=blitz.data.record.ts,
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ async def make_sprint_image(player: Player) -> bytes:
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
play_at=sprint.data.record.ts,
|
play_at=sprint.data.record.ts,
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ async def _(nb_user: User, event_session: EventSession, bot_info: UserInfo = Bot
|
|||||||
name=bot_info.user_name,
|
name=bot_info.user_name,
|
||||||
),
|
),
|
||||||
prompt='io绑定{游戏ID}',
|
prompt='io绑定{游戏ID}',
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ async def _(
|
|||||||
name=bot_info.user_name,
|
name=bot_info.user_name,
|
||||||
),
|
),
|
||||||
prompt='top查我',
|
prompt='top查我',
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ async def make_query_image(profile: UserProfile) -> bytes:
|
|||||||
apl=history.apl,
|
apl=history.apl,
|
||||||
apm_trending=Trending.KEEP,
|
apm_trending=Trending.KEEP,
|
||||||
),
|
),
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ async def _(
|
|||||||
name=bot_info.user_name,
|
name=bot_info.user_name,
|
||||||
),
|
),
|
||||||
prompt='top绑定{游戏ID}',
|
prompt='top绑定{游戏ID}',
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ async def _(
|
|||||||
name=bot_info.user_remark or bot_info.user_displayname or bot_info.user_name,
|
name=bot_info.user_remark or bot_info.user_displayname or bot_info.user_name,
|
||||||
),
|
),
|
||||||
prompt='茶服查我',
|
prompt='茶服查我',
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ async def make_query_image(user_info: UserInfoSuccess, game_data: GameData, even
|
|||||||
challenge=f'{int(user_info.data.pb_challenge):,}' if user_info.data.pb_challenge != '0' else 'N/A',
|
challenge=f'{int(user_info.data.pb_challenge):,}' if user_info.data.pb_challenge != '0' else 'N/A',
|
||||||
marathon=f'{int(user_info.data.pb_marathon):,}' if user_info.data.pb_marathon != '0' else 'N/A',
|
marathon=f'{int(user_info.data.pb_marathon):,}' if user_info.data.pb_marathon != '0' else 'N/A',
|
||||||
),
|
),
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ async def _(
|
|||||||
name=bot_info.user_name,
|
name=bot_info.user_name,
|
||||||
),
|
),
|
||||||
prompt='茶服绑定{游戏ID}',
|
prompt='茶服绑定{游戏ID}',
|
||||||
_lang=get_lang(),
|
lang=get_lang(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
) as page_hash:
|
) as page_hash:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ from ...typedefs import Lang, Number
|
|||||||
|
|
||||||
|
|
||||||
class Base(BaseModel):
|
class Base(BaseModel):
|
||||||
_lang: Lang
|
lang: Lang
|
||||||
|
|
||||||
|
|
||||||
class Avatar(BaseModel):
|
class Avatar(BaseModel):
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "nonebot-plugin-tetris-stats"
|
name = "nonebot-plugin-tetris-stats"
|
||||||
version = "1.8.0"
|
version = "1.8.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" }]
|
||||||
@@ -159,7 +159,7 @@ defineConstant = { PYDANTIC_V2 = true }
|
|||||||
typeCheckingMode = "standard"
|
typeCheckingMode = "standard"
|
||||||
|
|
||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "1.8.0"
|
current_version = "1.8.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