forked from test/mau_mau_bot
@username and dont try to sort a bool
This commit is contained in:
parent
b6f156327d
commit
f937aea051
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -69,7 +69,7 @@ def reply_to_query(bot, update):
|
||||||
|
|
||||||
if game.choosing_color:
|
if game.choosing_color:
|
||||||
choose_color(results)
|
choose_color(results)
|
||||||
else:
|
elif playable:
|
||||||
playable = list(sorted(player.playable_cards()))
|
playable = list(sorted(player.playable_cards()))
|
||||||
|
|
||||||
if playable is False:
|
if playable is False:
|
||||||
|
@ -233,7 +233,7 @@ def chosen_card(bot, update):
|
||||||
|
|
||||||
player_name = player.user.first_name
|
player_name = player.user.first_name
|
||||||
if player.user.username:
|
if player.user.username:
|
||||||
player_name += ' (' + player.user.username + ')'
|
player_name += ' (@' + player.user.username + ')'
|
||||||
bot.sendMessage(chat_id, text="Next player: " + player_name)
|
bot.sendMessage(chat_id, text="Next player: " + player_name)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue