mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-25 15:14:18 +00:00
Fatto! (closes #64)
This commit is contained in:
parent
16f183b52d
commit
5272d53081
1 changed files with 6 additions and 0 deletions
6
main.py
6
main.py
|
@ -53,6 +53,12 @@ class Player:
|
||||||
"""Uccidi il giocatore."""
|
"""Uccidi il giocatore."""
|
||||||
self.role.ondeath()
|
self.role.ondeath()
|
||||||
self.alive = False
|
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:
|
class Game:
|
||||||
|
|
Loading…
Reference in a new issue