forked from Cryz/battle_royale_sim
Merge pull request 'master' (#5) from green/battle_royale_sim:master into master
Reviewed-on: Cryz/battle_royale_sim#5
This commit is contained in:
5
bot.py
5
bot.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user