aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/constants.py11
-rw-r--r--bot/exts/utilities/cheatsheet.py2
2 files changed, 9 insertions, 4 deletions
diff --git a/bot/constants.py b/bot/constants.py
index d550b317..4c657ff9 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -86,15 +86,20 @@ class _Channels(EnvConfig):
Channels = _Channels()
-class Categories(NamedTuple):
- help_in_use = 696958401460043776
+
+class _Categories(EnvConfig):
+ EnvConfig.Config.env_prefix = "categories_"
+
+ python_help_system = 691405807388196926
development = 411199786025484308
devprojects = 787641585624940544
media = 799054581991997460
staff = 364918151625965579
-codejam_categories_name = "Code Jam" # Name of the codejam team categories
+Categories = _Categories()
+
+CODEJAM_CATEGORY_NAME = "Code Jam" # Name of the codejam team categories
class Client(NamedTuple):
diff --git a/bot/exts/utilities/cheatsheet.py b/bot/exts/utilities/cheatsheet.py
index 3141a050..d7eb4917 100644
--- a/bot/exts/utilities/cheatsheet.py
+++ b/bot/exts/utilities/cheatsheet.py
@@ -80,7 +80,7 @@ class CheatSheet(commands.Cog):
aliases=("cht.sh", "cheatsheet", "cheat-sheet", "cht"),
)
@commands.cooldown(1, 10, BucketType.user)
- @whitelist_override(categories=[Categories.help_in_use])
+ @whitelist_override(categories=[Categories.python_help_system])
async def cheat_sheet(self, ctx: Context, *search_terms: str) -> None:
"""
Search cheat.sh.