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!"