hangman now counts word guesses against you
This commit is contained in:
parent
b9cc5e9603
commit
05651a3c4e
|
@ -66,6 +66,7 @@ def hangman(bot, trigger):
|
||||||
bot.memory["hangman"].pop(trigger.channel)
|
bot.memory["hangman"].pop(trigger.channel)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
bot.memory["hangman"][trigger.channel].tries -= 1
|
||||||
msg = "Incorrect. " \
|
msg = "Incorrect. " \
|
||||||
+ f"{bot.memory['hangman'][trigger.channel].tries} tries left."
|
+ f"{bot.memory['hangman'][trigger.channel].tries} tries left."
|
||||||
bot.reply(msg)
|
bot.reply(msg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user