1
0
Fork 0
mirror of synced 2024-06-10 22:54:33 +12:00

Stopped allowing to start a game with yourself

This commit is contained in:
phxntxm 2016-11-01 14:29:02 -05:00
parent 32f34e4c8d
commit 0dfa1db8e8

View file

@ -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)