Merge pull request 'master' (#5) from green/battle_royale_sim:master into master

Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
2025-07-26 18:07:53 +02:00
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)