aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/cheatsheet.py
diff options
context:
space:
mode:
authorGravatar Shivansh-007 <[email protected]>2021-02-02 05:14:34 +0530
committerGravatar Shivansh-007 <[email protected]>2021-02-02 05:14:34 +0530
commit2631004f7d1467bc81090ac481de78cbfe7978e5 (patch)
tree75c9946cf5f967b2cf090a5d4e8c3bc63084c7d7 /bot/exts/evergreen/cheatsheet.py
parentMake use of constants (diff)
Add override_in_channel deco
Diffstat (limited to 'bot/exts/evergreen/cheatsheet.py')
-rw-r--r--bot/exts/evergreen/cheatsheet.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/evergreen/cheatsheet.py b/bot/exts/evergreen/cheatsheet.py
index 4191a83f..c83af839 100644
--- a/bot/exts/evergreen/cheatsheet.py
+++ b/bot/exts/evergreen/cheatsheet.py
@@ -8,7 +8,8 @@ from discord.ext import commands
from discord.ext.commands import BucketType, Context
from bot import constants
-from bot.constants import Channels, Colours, ERROR_REPLIES
+from bot.constants import Channels, Colours, ERROR_REPLIES, WHITELISTED_CHANNELS
+from bot.utils.decorators import override_in_channel
ERROR_MESSAGE = f"""
Unknown cheat sheet. Please try to reformulate your query.
@@ -71,6 +72,7 @@ class CheatSheet(commands.Cog):
name="cheat",
aliases=("cht.sh", "cheatsheet", "cheat-sheet", "cht"),
)
+ @override_in_channel(WHITELISTED_CHANNELS)
@commands.cooldown(1, 10, BucketType.user)
async def cheat_sheet(self, ctx: Context, *search_terms: str) -> None:
"""