1
0

added image map generator, map cell's color and emoji legend, death players emoji and color

This commit is contained in:
andrea
2025-07-28 22:29:27 +02:00
parent 56da6031f2
commit 52cc55e611
4 changed files with 120 additions and 20 deletions

8
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', 'Show Map']
['Simulate Day', 'Run Periodically', 'Show Map UTF8', 'Show Map Image']
]
reply_markup= ReplyKeyboardMarkup(keyboard, one_time_keyboard=False, resize_keyboard=True)
@@ -64,8 +64,10 @@ 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)
if text == 'Show Map UTF8':
return await _cmd.cmd_show_game_map_unicode(context, update, chat_id)
if text == 'Show Map Image':
return await _cmd.cmd_show_game_map_image(context, update, chat_id)
# special commands
if text == 'upstart': return await _scmd.update_bot(update, context)