mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2025-02-16 13:24:06 +00:00
ep6 il ritorno del bugfix
This commit is contained in:
parent
f194bc498c
commit
3596281535
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -416,7 +416,7 @@ def status(bot, update):
|
|||
"""Visualizza lo stato della partita."""
|
||||
game = findgamebyid(update.message.chat['id'])
|
||||
if game is not None:
|
||||
text = s.status_header.format(name=game.groupid, admin=game.adminid, phase=game.phase)
|
||||
text = s.status_header.format(name=game.name, admin=game.adminid, phase=game.phase)
|
||||
game.updatevotes()
|
||||
# Aggiungi l'elenco dei giocatori
|
||||
for player in game.players:
|
||||
|
@ -489,7 +489,7 @@ def power(bot, update):
|
|||
if game is None:
|
||||
game = findgamebyid(int(cmd[1]))
|
||||
if game is not None:
|
||||
player = game.findplayerbyid(int(update.message.from_user['id'])
|
||||
player = game.findplayerbyid(int(update.message.from_user['id']))
|
||||
if player is not None:
|
||||
if player.alive:
|
||||
player.role.power(bot, game, player, cmd[2])
|
||||
|
|
Loading…
Add table
Reference in a new issue