From 0dfa1db8e8da0711682765d1194fb24cc17b9df4 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Tue, 1 Nov 2016 14:29:02 -0500 Subject: [PATCH] Stopped allowing to start a game with yourself --- cogs/tictactoe.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogs/tictactoe.py b/cogs/tictactoe.py index fce0c83..930b630 100644 --- a/cogs/tictactoe.py +++ b/cogs/tictactoe.py @@ -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)