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

5
bot.py
View File

@@ -18,7 +18,7 @@ async def bot_start(update, context):
keyboard = [
['Init/Restart'],
['Add Player', 'Add random Players', 'Add random color Players'],
['Get Players', 'Get Alive Players', 'Get Death Players'],
['Get Players', 'Get Alive Players', 'Get Death Players', 'Get Ranking Players',],
['Simulate Day', 'Run Periodically']
]
reply_markup= ReplyKeyboardMarkup(keyboard, one_time_keyboard=False, resize_keyboard=True)
@@ -53,6 +53,9 @@ async def bot_commands(update, context):
if text == 'Get Death Players':
print(f'bot_command: {chat_id} Get Death Players')
return await _bot_player.get_death_players(update, context)
if text == 'Get Ranking Players':
print(f'bot_command: {chat_id} Get Ranking Players')
return await _bot_player.get_ranking_players(update, context)
if text == 'Simulate Day':
print(f'bot_command: {chat_id} Simulate Day')
return await _bot_sim.simulate_day(context, chat_id)