🐛 now assumes Gwendolyn when using "!fourinarow start" without an opponent

This commit is contained in:
jona605a
2020-08-04 10:32:26 +02:00
parent 75f0c9bb34
commit 436dd879ce

View File

@ -137,6 +137,8 @@ def parseFourInARow(command, channel, user):
return "I didn't get that. Use \"!fourinarow start [opponent]\" to start a game. To play against the computer, use difficulty 1 through 5 as the [opponent].", False, False, False, False return "I didn't get that. Use \"!fourinarow start [opponent]\" to start a game. To play against the computer, use difficulty 1 through 5 as the [opponent].", False, False, False, False
elif commands[0] == "start": elif commands[0] == "start":
# Starting a game # Starting a game
if len(commands) == 1: # if the commands is "!hex start", the opponent is Gwendolyn
commands.append("3")
return fourInARowStart(channel,user,commands[1]) # commands[1] is the opponent return fourInARowStart(channel,user,commands[1]) # commands[1] is the opponent
# Stopping the game # Stopping the game