1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Corrected issue where if the method existed was being checked, instead of calling it

This commit is contained in:
Phxntxm 2016-08-14 18:48:17 -05:00
parent 7ccc78a8ae
commit b7fa339ffa

View file

@ -86,13 +86,13 @@ class Hangman:
fmt = "That's correct!"
else:
fmt = "Sorry that's not the correct phrase..."
fmt += str(game)
if game.win:
if game.win():
fmt += " You guys got it! The word was `{}`".format(game.word)
#del self.games[ctx.message.server.id]
del self.games[ctx.message.server.id]
elif game.failed:
fmt += " Sorry, you guys failed...the word was `{}`".format(game.word)
#del self.games[ctx.message.server.id]
del self.games[ctx.message.server.id]
else:
fmt += str(game)