ranking as commands or at the end of each day
This commit is contained in:
@@ -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'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user