1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2025-02-16 13:24:06 +00:00

Cambiato ultimo config

This commit is contained in:
Steffo 2016-05-27 15:16:47 +02:00
parent 8d6af132bd
commit e326ea3cd5

View file

@ -572,10 +572,10 @@ def config(bot, update):
game.configstep += 1
game.message(bot, s.config_list[game.configstep])
elif game.configstep == 3:
try:
game.votingmifia = bool(cmd[1])
except ValueError:
game.message(bot, s.error_invalid_config)
if cmd[1].lower() == 'testa':
game.votingmifia = False
elif cmd[1].lower() == 'unica':
game.votingmifia = True
else:
# Fine del config, inizio assegnazione ruoli
game.phase = 'Voting'