diff options
author | 2023-05-01 14:17:28 +0100 | |
---|---|---|
committer | 2023-05-06 13:20:46 +0100 | |
commit | 229c1672529c7d5b87dc0928816c0094bd42189c (patch) | |
tree | 615c3a7e51846a84ecde3013cb1c033ffa35f826 | |
parent | update Channels (diff) |
update Categories
-rw-r--r-- | bot/constants.py | 11 | ||||
-rw-r--r-- | bot/exts/utilities/cheatsheet.py | 2 |
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. |