From 05651a3c4ee780f8dd76c4b68139e34113608d80 Mon Sep 17 00:00:00 2001 From: iou1name Date: Fri, 8 Jun 2018 17:02:06 -0400 Subject: [PATCH] hangman now counts word guesses against you --- modules/hangman.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/hangman.py b/modules/hangman.py index ee43570..c7a53e8 100755 --- a/modules/hangman.py +++ b/modules/hangman.py @@ -66,6 +66,7 @@ def hangman(bot, trigger): bot.memory["hangman"].pop(trigger.channel) return else: + bot.memory["hangman"][trigger.channel].tries -= 1 msg = "Incorrect. " \ + f"{bot.memory['hangman'][trigger.channel].tries} tries left." bot.reply(msg)