Stopped allowing to start a game with yourself
This commit is contained in:
parent
32f34e4c8d
commit
0dfa1db8e8
|
@ -216,6 +216,9 @@ class TicTacToe:
|
|||
if player2 == ctx.message.server.me:
|
||||
await self.bot.say("You want to play? Alright lets play.\n\nI win, so quick you didn't even notice it.")
|
||||
return
|
||||
if player2 == player1:
|
||||
await self.bot.say("You can't play yourself, I won't allow it. Go find some friends")
|
||||
return
|
||||
|
||||
# Create the board and return who has been decided to go first
|
||||
x_player = self.create(ctx.message.server.id, player1, player2)
|
||||
|
|
Loading…
Reference in a new issue