forked from Cryz/battle_royale_sim
added image map generator, map cell's color and emoji legend, death players emoji and color
This commit is contained in:
8
bot.py
8
bot.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user