templating

This commit is contained in:
Pesakitan22 2018-04-17 11:15:16 +07:00
parent 9682b9fbce
commit 0b434636bc
2 changed files with 6 additions and 4 deletions

View file

@ -115,6 +115,8 @@ def do_play_card(bot, player, result_id):
us.first_places += 1
if game.mode == 'one':
gm.end_game(chat, user)
send_async(bot, chat.id,
text=__("Game ended!", multi=game.translate))
game.players_won += 1

View file

@ -31,8 +31,8 @@ help_text = ("Follow these steps:\n\n"
" running game with /join\n"
"3. After at least two players have joined, start the game with"
" /start\n"
"4. Type <code>@unobot</code> into your chat box and hit "
"<b>space</b>, or click the <code>via @unobot</code> text "
"4. Type <code>@xultanbot</code> into your chat box and hit "
"<b>space</b>, or click the <code>via @xultanbot</code> text "
"next to messages. You will see your cards (some greyed out), "
"any extra options like drawing, and a <b>?</b> to see the "
"current game state. The <b>greyed out cards</b> are those you "
@ -75,8 +75,8 @@ attributions = ("Attributions:\n"
modes_explanation = ("This UNO bot has three game modes: Classic, Sanic and Wild.\n\n"
" 🎻 The Classic mode uses the conventional UNO deck and there is no auto skip.\n"
" 🚀 The Sanic mode uses the conventional UNO deck and the bot automatically skips a player if he/she takes too long to play its turn\n"
" 🐉 The Wild mode uses a deck with more special cards, less number variety and no auto skip.\n\n"
" 😐 The Saitama mode uses a deck with more special cards, less number variety and no auto skip. But ended with one win.\n\n"
" 🐉 The Wild mode uses a deck with more special cards, less number variety and no auto skip.\n"
" 😐 The Saitama mode uses a deck with more special cards, less number variety and no auto skip, but ended with one win.\n\n"
"To change the game mode, the GAME CREATOR has to type the bot nickname and a space, just like when playing a card, and all gamemode options should appear.")