forked from test/mau_mau_bot
fix /start command
This commit is contained in:
parent
367d16e85f
commit
a79add4745
1 changed files with 2 additions and 1 deletions
3
bot.py
3
bot.py
|
@ -140,7 +140,8 @@ def start_game(bot, update):
|
||||||
chat_id = update.message.chat_id
|
chat_id = update.message.chat_id
|
||||||
game = gm.chatid_game[chat_id]
|
game = gm.chatid_game[chat_id]
|
||||||
|
|
||||||
if game.current_player in (None, game.current_player.next):
|
if game.current_player is None or \
|
||||||
|
game.current_player is game.current_player.next:
|
||||||
bot.sendMessage(chat_id, text="At least two players must /join "
|
bot.sendMessage(chat_id, text="At least two players must /join "
|
||||||
"the game before you can start it")
|
"the game before you can start it")
|
||||||
elif game.started:
|
elif game.started:
|
||||||
|
|
Loading…
Reference in a new issue