更新bmcl.py插件,显示名称前添加了一个标志符号,赞助者字段名称更改

This commit is contained in:
shenjack 2024-02-22 21:25:00 +08:00
parent ed9ec33ed9
commit 152c8215c3
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -117,10 +117,10 @@ def bmcl_rank(msg: NewMessage, client: IcaClient, name: Optional[str]) -> None:
else: else:
show_ranks = ranks[:limit] show_ranks = ranks[:limit]
rank_msg = ( rank_msg = (
f"名称: {r['name']}\n" f"{'' if r['start'] else ''}名称: {r['name']}\n"
# f"-{rank['full']} \n" # f"-{rank['full']} \n"
# f"版本: {r['version']}\n" # f"版本: {r['version']}\n"
f"拥有者: {r['owner']} 状态: {r['start']}|" f"赞助者: {r['owner']}|"
f"h/d {format_hit_count(r['rank']['hits'])}|{format_data_size(r['rank']['bytes'])}" f"h/d {format_hit_count(r['rank']['hits'])}|{format_data_size(r['rank']['bytes'])}"
for r in show_ranks for r in show_ranks
) )