🐛 Small difficulty setting fix

This commit is contained in:
jona605a
2020-08-04 11:44:29 +02:00
parent 3ca56b80ed
commit e1b767be68
2 changed files with 12 additions and 7 deletions

View File

@ -17,7 +17,7 @@ def parseHex(command, channel, user):
elif commands[0] == "start":
# Starting a game
if len(commands) == 1: # if the commands is "!hex start", the opponent is Gwendolyn
commands.append("Gwendolyn")
commands.append("2")
return hexStart(channel,user,commands[1]) # commands[1] is the opponent
# Stopping the game
@ -46,7 +46,7 @@ def hexStart(channel, user, opponent):
data = json.load(f)
if user.lower() != opponent.lower():
if channel not in data["4 in a row games"]:
if channel not in data["hex games"]:
if opponent in ["1","2","3","4","5"]:
difficulty = int(opponent)