mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-02 18:20:01 +08:00
update code
This commit is contained in:
@@ -14,9 +14,15 @@ async def rank(group_id: int, itype) -> str:
|
||||
elif itype == 'make_money':
|
||||
rank_name = '\t赢取金币排行榜\n'
|
||||
all_user_data = [user.make_money for user in all_users]
|
||||
else:
|
||||
elif itype == 'spend_money':
|
||||
rank_name = '\t输掉金币排行榜\n'
|
||||
all_user_data = [user.lose_money for user in all_users]
|
||||
elif itype == 'max_winning_streak':
|
||||
rank_name = '\t最高连胜排行榜\n'
|
||||
all_user_data = [user.max_winning_streak for user in all_users]
|
||||
else:
|
||||
rank_name = '\t最高连败排行榜\n'
|
||||
all_user_data = [user.max_losing_streak for user in all_users]
|
||||
rst = ''
|
||||
if all_users:
|
||||
rst = await init_rank(all_user_id, all_user_data, group_id)
|
||||
|
||||
Reference in New Issue
Block a user