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

Fatto! (closes #64)

This commit is contained in:
Steffo 2017-07-19 21:25:20 +02:00
parent 16f183b52d
commit 5272d53081

View file

@ -53,6 +53,12 @@ class Player:
"""Uccidi il giocatore."""
self.role.ondeath()
self.alive = False
# Silenzia il giocatore
if self is not self.game.admin:
try:
self.game.bot.restrictChatMember(self.game.groupid, self.tid, None, False, False, False, False)
except Unauthorized:
print("Bot is not administrator in group {}".format(self.groupid))
class Game: