ranking as commands or at the end of each day

This commit is contained in:
2025-07-26 17:56:54 +02:00
parent 65688b9100
commit 31637dc845
4 changed files with 64 additions and 1 deletions

View File

@@ -39,3 +39,12 @@ async def get_death_players(update, context):
death_str= '\n'.join(death)
print(f'get_death_players: {death_str}')
await update.message.reply_text(f'Ecco i giocatori morti x.x: \n{death_str}')
async def get_ranking_players(update, context):
Arena = context.application.bot_data['arena']
leaderboard_text = Arena.get_ranking()
print(f'{leaderboard_text}')
await update.message.reply_text(
f'{leaderboard_text}',
parse_mode='Markdown'
)