1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-22 13:54:19 +00:00

Paltri trova i bug (#61)

This commit is contained in:
Steffo 2017-07-24 19:40:22 +02:00
parent f0ff9b0e36
commit 7742bccd29

View file

@ -640,14 +640,14 @@ def status(bot: Bot, update):
# Aggiungi l'elenco dei giocatori # Aggiungi l'elenco dei giocatori
for player in game.players: for player in game.players:
if not player.alive: if not player.alive:
text += s.status_dead_player.format(name=player.tusername) text += s.status_dead_player.format(player=player)
elif game.day > 1 and player.votingfor is not None: elif game.day > 1 and player.votingfor is not None:
text += s.status_alive_player.format(icon="\U0001F610", text += s.status_alive_player.format(icon="\U0001F610",
player=player, player=player,
target=player.votingfor) target=player.votingfor)
else: else:
text += s.status_basic_player.format(icon="\U0001F610", text += s.status_basic_player.format(icon="\U0001F610",
name=player.tusername) player=player)
game.message(text) game.message(text)
else: else:
bot.sendMessage(update.message.chat.id, s.error_no_games_found, parse_mode=ParseMode.MARKDOWN) bot.sendMessage(update.message.chat.id, s.error_no_games_found, parse_mode=ParseMode.MARKDOWN)