aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/connect_four.py
diff options
context:
space:
mode:
authorGravatar Shivansh-007 <[email protected]>2021-02-24 17:28:08 +0530
committerGravatar Shivansh-007 <[email protected]>2021-02-24 17:28:08 +0530
commitb70a3fb551600fc34ea4d9e5111957149dceb1a2 (patch)
treed29ebe62e2dead6e55896d63cda9509589df42d5 /bot/exts/evergreen/connect_four.py
parentFix pipfile conflicts, and add/use emojis from constants.py (diff)
Make connect 4 and its sub command ai guild only
Diffstat (limited to 'bot/exts/evergreen/connect_four.py')
-rw-r--r--bot/exts/evergreen/connect_four.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/exts/evergreen/connect_four.py b/bot/exts/evergreen/connect_four.py
index 65458dbc..7e3ec42b 100644
--- a/bot/exts/evergreen/connect_four.py
+++ b/bot/exts/evergreen/connect_four.py
@@ -6,6 +6,7 @@ from functools import partial
import discord
import emojis
from discord.ext import commands
+from discord.ext.commands import guild_only
from bot.constants import Emojis
@@ -358,6 +359,7 @@ class ConnectFour(commands.Cog):
self.games.remove(game)
raise
+ @guild_only()
@commands.group(
invoke_without_command=True,
aliases=["4inarow", "connect4", "connectfour", "c4"],
@@ -422,6 +424,7 @@ class ConnectFour(commands.Cog):
await self._play_game(ctx, user, board_size, str(emoji1), str(emoji2))
+ @guild_only()
@connect_four.command(aliases=["bot", "computer", "cpu"])
async def ai(
self,