1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-26 15:44:19 +00:00
This commit is contained in:
Steffo 2017-07-06 19:02:02 +03:00
parent 185b1ff752
commit caa880c9b1

View file

@ -942,7 +942,7 @@ class Game:
def joinplayer(self, bot, player): def joinplayer(self, bot, player):
self.players.append(player) self.players.append(player)
self.message(bot, s.player_joined.format(name=p.tusername)) self.message(bot, s.player_joined.format(name=player.tusername))
# Se è il primo giocatore ad unirsi, diventa admin # Se è il primo giocatore ad unirsi, diventa admin
if len(self.players) == 0: if len(self.players) == 0:
self.admin = player self.admin = player
@ -1032,8 +1032,7 @@ def debugjoin(bot, update):
return return
arg = update.message.text.split(" ") arg = update.message.text.split(" ")
p = Player(random.randrange(0, 10000), arg[1], True) # ewwwwww p = Player(random.randrange(0, 10000), arg[1], True) # ewwwwww
game.message(bot, s.player_joined.format(name=p.tusername)) game.joinplayer(bot, p)
game.players.append(p)
def status(bot, update): def status(bot, update):