mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 13:54:19 +00:00
boh?
This commit is contained in:
parent
a3725aa14d
commit
e2a6ca42f0
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -589,10 +589,10 @@ def join(bot, update):
|
||||||
game.message(bot, s.error_player_already_joined)
|
game.message(bot, s.error_player_already_joined)
|
||||||
return
|
return
|
||||||
# Giocatore senza username
|
# Giocatore senza username
|
||||||
if update.message.from_user["username"] is not None:
|
if update.message.from_user.username is not None:
|
||||||
game.message(bot, s.error_no_username)
|
game.message(bot, s.error_no_username)
|
||||||
return
|
return
|
||||||
p = Player(update.message.from_user['id'], update.message.from_user['username'])
|
p = Player(update.message.from_user.id, update.message.from_user.username)
|
||||||
try:
|
try:
|
||||||
p.message(bot, s.you_joined.format(game=game.name))
|
p.message(bot, s.you_joined.format(game=game.name))
|
||||||
except Unauthorized:
|
except Unauthorized:
|
||||||
|
|
Loading…
Reference in a new issue