show map with players on telegram bot

This commit is contained in:
andrea
2025-07-28 20:45:42 +02:00
parent 5002890540
commit 56da6031f2
5 changed files with 48 additions and 26 deletions

4
bot.py
View File

@@ -24,7 +24,7 @@ async def bot_start(update, context):
['Init/Restart'],
['Add Player', 'Add random Players', 'Add random color Players'],
['Get Players', 'Get Alive Players', 'Get Death Players', 'Get Ranking Players',],
['Simulate Day', 'Run Periodically']
['Simulate Day', 'Run Periodically', 'Show Map']
]
reply_markup= ReplyKeyboardMarkup(keyboard, one_time_keyboard=False, resize_keyboard=True)
@@ -64,6 +64,8 @@ async def bot_commands(update, context):
return await _cmd.cmd_add_random_players(context, update, chat_id)
if text == 'Add random color Players':
return await _cmd.cmd_add_random_color_players(context, update, chat_id)
if text == 'Show Map':
return await _cmd.cmd_show_game_map(context, update, chat_id)
# special commands
if text == 'upstart': return await _scmd.update_bot(update, context)