From 0b434636bc64a47facb58f5b4f1da1bd4d177be2 Mon Sep 17 00:00:00 2001 From: Pesakitan22 Date: Tue, 17 Apr 2018 11:15:16 +0700 Subject: [PATCH] templating --- actions.py | 2 ++ simple_commands.py | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/actions.py b/actions.py index 111e633..aeae24e 100644 --- a/actions.py +++ b/actions.py @@ -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 diff --git a/simple_commands.py b/simple_commands.py index c81ceac..04deb29 100644 --- a/simple_commands.py +++ b/simple_commands.py @@ -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 @unobot into your chat box and hit " - "space, or click the via @unobot text " + "4. Type @xultanbot into your chat box and hit " + "space, or click the via @xultanbot text " "next to messages. You will see your cards (some greyed out), " "any extra options like drawing, and a ? to see the " "current game state. The greyed out cards 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.")