mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-25 15:14:18 +00:00
Un if __debug__ in più fa sempre bene
This commit is contained in:
parent
b7fa715852
commit
fbb74a4acb
1 changed files with 14 additions and 13 deletions
1
main.py
1
main.py
|
@ -660,6 +660,7 @@ def role(bot, update):
|
|||
|
||||
def kill(bot, update):
|
||||
"""Uccidi un giocatore in partita."""
|
||||
if __debug__:
|
||||
game = findgamebyid(update.message.chat['id'])
|
||||
if game is not None and game.phase is 'Voting':
|
||||
if update.message.from_user['id'] == game.adminid:
|
||||
|
|
Loading…
Reference in a new issue