mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🎨 重命名一些模块
This commit is contained in:
34
nonebot_plugin_tetris_stats/games/tetrio/constant.py
Normal file
34
nonebot_plugin_tetris_stats/games/tetrio/constant.py
Normal file
@@ -0,0 +1,34 @@
|
||||
from re import compile
|
||||
from typing import Literal
|
||||
|
||||
from .api.typing import Rank
|
||||
|
||||
GAME_TYPE: Literal['IO'] = 'IO'
|
||||
|
||||
BASE_URL = 'https://ch.tetr.io/api/'
|
||||
|
||||
RANK_PERCENTILE: dict[Rank, float] = {
|
||||
'x': 1,
|
||||
'u': 5,
|
||||
'ss': 11,
|
||||
's+': 17,
|
||||
's': 23,
|
||||
's-': 30,
|
||||
'a+': 38,
|
||||
'a': 46,
|
||||
'a-': 54,
|
||||
'b+': 62,
|
||||
'b': 70,
|
||||
'b-': 78,
|
||||
'c+': 84,
|
||||
'c': 90,
|
||||
'c-': 95,
|
||||
'd+': 97.5,
|
||||
'd': 100,
|
||||
}
|
||||
|
||||
TR_MIN = 0
|
||||
TR_MAX = 25000
|
||||
|
||||
USER_ID = compile(r'^[a-f0-9]{24}$')
|
||||
USER_NAME = compile(r'^[a-zA-Z0-9_-]{3,16}$')
|
||||
Reference in New Issue
Block a user