diff options
author | 2021-11-21 01:55:20 +0300 | |
---|---|---|
committer | 2021-11-21 01:55:20 +0300 | |
commit | 377dcf969c74ef83cf534e7ba058fbb87bd28d88 (patch) | |
tree | 0713ee568f554a88cf29fe6863c33c84ea2fcc80 /bot/exts/fun/connect_four.py | |
parent | Merge pull request #949 from D0rs4n/pr/aochanges (diff) |
Add Better Support For Whitelisting DM Commands
Adds a toggle to the whitelist override, to allow explicit enabling of
a command in DMs, and sets the default to False.
Removes redundant `guild_only` decorators.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'bot/exts/fun/connect_four.py')
-rw-r--r-- | bot/exts/fun/connect_four.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bot/exts/fun/connect_four.py b/bot/exts/fun/connect_four.py index 647bb2b7..f53695d5 100644 --- a/bot/exts/fun/connect_four.py +++ b/bot/exts/fun/connect_four.py @@ -6,7 +6,6 @@ from typing import Optional, Union import discord import emojis from discord.ext import commands -from discord.ext.commands import guild_only from bot.bot import Bot from bot.constants import Emojis @@ -361,7 +360,6 @@ class ConnectFour(commands.Cog): self.games.remove(game) raise - @guild_only() @commands.group( invoke_without_command=True, aliases=("4inarow", "connect4", "connectfour", "c4"), @@ -426,7 +424,6 @@ 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, |