🐛
This commit is contained in:
@ -15,6 +15,8 @@ class Hangman():
|
||||
|
||||
if game == None:
|
||||
apiKey = self.bot.credentials.wordnikKey
|
||||
word = "-"
|
||||
while "-" in word:
|
||||
with urllib.request.urlopen(apiUrl+apiKey) as p:
|
||||
word = list(json.load(p)[0]["word"].upper())
|
||||
logThis("Found the word \""+"".join(word)+"\"")
|
||||
@ -43,7 +45,7 @@ class Hangman():
|
||||
|
||||
if game != None:
|
||||
if user == game["player"]:
|
||||
if len(guess) == 1:
|
||||
if len(guess) == 1 and guess in list(string.ascii_uppercase):
|
||||
if guess not in game["guessed letters"]:
|
||||
correctGuess = 0
|
||||
|
||||
|
Reference in New Issue
Block a user