TETR.IO rank 命令使用图片回复

This commit is contained in:
2024-07-17 08:12:30 +08:00
parent e4f19d1d81
commit 737671d7a8
10 changed files with 437 additions and 225 deletions

View File

@@ -1,13 +1,13 @@
from re import compile
from typing import Literal
from .api.typing import Rank
from .api.typing import ValidRank
GAME_TYPE: Literal['IO'] = 'IO'
BASE_URL = 'https://ch.tetr.io/api/'
RANK_PERCENTILE: dict[Rank, float] = {
RANK_PERCENTILE: dict[ValidRank, float] = {
'x': 1,
'u': 5,
'ss': 11,