🐛 Small difficulty setting fix
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user