mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
✨ TETR.IO 添加 list 命令
This commit is contained in:
@@ -82,6 +82,14 @@ command.add(
|
||||
),
|
||||
),
|
||||
),
|
||||
Subcommand(
|
||||
'list',
|
||||
Option('--max-tr', Arg('max_tr', float), help_text='TR的上限'),
|
||||
Option('--min-tr', Arg('min_tr', float), help_text='TR的下限'),
|
||||
Option('--limit', Arg('limit', int), help_text='查询数量'),
|
||||
Option('--country', Arg('country', str), help_text='国家代码'),
|
||||
help_text='查询 TETR.IO 段位排行榜',
|
||||
),
|
||||
Subcommand(
|
||||
'rank',
|
||||
Args(Arg('rank', ValidRank, notice='TETR.IO 段位')),
|
||||
@@ -155,11 +163,12 @@ alc.shortcut(
|
||||
|
||||
add_block_handlers(alc.assign('TETRIO.query'))
|
||||
|
||||
from . import bind, config, query, rank, record # noqa: E402
|
||||
from . import bind, config, list, query, rank, record # noqa: E402
|
||||
|
||||
__all__ = [
|
||||
'bind',
|
||||
'config',
|
||||
'list',
|
||||
'query',
|
||||
'rank',
|
||||
'record',
|
||||
|
||||
Reference in New Issue
Block a user