forked from test/mau_mau_bot
on skip, add card to players hand
This commit is contained in:
parent
9dc387dadd
commit
9b4f4a43ea
1 changed files with 2 additions and 1 deletions
3
bot.py
3
bot.py
|
@ -22,7 +22,7 @@ logging.basicConfig(
|
|||
logger = logging.getLogger(__name__)
|
||||
|
||||
gm = GameManager()
|
||||
u = Updater(TOKEN)
|
||||
u = Updater(token=TOKEN, workers=20)
|
||||
dp = u.dispatcher
|
||||
|
||||
botan = False
|
||||
|
@ -330,6 +330,7 @@ def skip_player(bot, update):
|
|||
return
|
||||
|
||||
game.current_player.anti_cheat += 1
|
||||
game.current_player.cards.append(game.deck.draw())
|
||||
game.turn()
|
||||
send_async(bot, chat_id,
|
||||
text="Next player: %s"
|
||||
|
|
Loading…
Reference in a new issue