1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
This commit is contained in:
Steffo 2016-04-17 13:13:53 -04:00
parent 06d397b708
commit 471475403c

View file

@ -64,7 +64,7 @@ class Game:
def fullstatus(self) -> str: def fullstatus(self) -> str:
"""Restituisci lo stato attuale della partita (per admin?) in una stringa unicode""" """Restituisci lo stato attuale della partita (per admin?) in una stringa unicode"""
tosend = "Stato attuale del gioco: \n" tosend = str(self.groupid) + "\n"
for player in self.players: for player in self.players:
if not player.alive: if not player.alive:
tosend += "\U0001F480 " tosend += "\U0001F480 "
@ -322,7 +322,7 @@ while True:
elif t['text'].startswith("/fullstatus"): elif t['text'].startswith("/fullstatus"):
if t['from']['id'] == g.adminid: if t['from']['id'] == g.adminid:
g.adminmessage(g.fullstatus()) g.adminmessage(g.fullstatus())
g.message(g.displaycount()) g.adminmessage(g.displaycount())
elif t['text'].startswith("/save"): elif t['text'].startswith("/save"):
if t['from']['id'] == g.adminid: if t['from']['id'] == g.adminid:
g.save() g.save()