From e8b7031109b2e21bd500e18a7d660797a70b6ad5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 4 Dec 2016 20:18:35 +0100 Subject: [PATCH] Bugfixes --- main.py | 4 ++-- strings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 7503e48..0a4b46f 100644 --- a/main.py +++ b/main.py @@ -234,7 +234,7 @@ class Derek(Role): game.message(bot, s.derek_deathwish_successful.format(icon=s.derek_icon, role=s.derek_name, name=self.deathwish.tusername)) - self.deathwish.kill() + self.deathwish.kill(bot, game) rolepriority = [Mifioso, Investigatore, Angelo, Derek, Terrorista] @@ -580,7 +580,7 @@ def join(bot, update): if p is None: p = Player(update.message.from_user['id'], update.message.from_user['username']) try: - p.message(bot, s.you_joined.format(game=game)) + p.message(bot, s.you_joined.format(game=game.name)) except TelegramError: game.message(bot, s.error_chat_unavailable) else: diff --git a/strings.py b/strings.py index c051c86..c8fd23a 100644 --- a/strings.py +++ b/strings.py @@ -191,7 +191,7 @@ status_alive_player = "{icon} @{name} ({votes} voti)\n" status_dead_player = "\U0001F480 @{name}\n" # Status: Modalità debug -debug_mode = "*DEBUG/CHEATS MODE*" +debug_mode = "*DEBUG/CHEATS MODE*\n" # Ping! pong = "Pong!"