1
0
Fork 0
mirror of synced 2024-06-27 18:50:35 +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: 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.") await self.bot.say("You want to play? Alright lets play.\n\nI win, so quick you didn't even notice it.")
return 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 # Create the board and return who has been decided to go first
x_player = self.create(ctx.message.server.id, player1, player2) x_player = self.create(ctx.message.server.id, player1, player2)