mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-26 15:44:19 +00:00
oops
This commit is contained in:
parent
185b1ff752
commit
caa880c9b1
1 changed files with 2 additions and 3 deletions
5
main.py
5
main.py
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue