Corrected issue where if the method existed was being checked, instead of calling it
This commit is contained in:
parent
7ccc78a8ae
commit
b7fa339ffa
1 changed files with 4 additions and 4 deletions
|
@ -86,13 +86,13 @@ class Hangman:
|
||||||
fmt = "That's correct!"
|
fmt = "That's correct!"
|
||||||
else:
|
else:
|
||||||
fmt = "Sorry that's not the correct phrase..."
|
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)
|
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:
|
elif game.failed:
|
||||||
fmt += " Sorry, you guys failed...the word was `{}`".format(game.word)
|
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:
|
else:
|
||||||
fmt += str(game)
|
fmt += str(game)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue