diff options
author | 2023-05-06 16:13:14 +0100 | |
---|---|---|
committer | 2023-05-09 15:42:23 +0100 | |
commit | 9266ce3a1b3e9f20ca01e8bfc75530f1ac21f7cf (patch) | |
tree | e159a0fae7850d706d713cf2b49dfed2140ce655 /bot/utils | |
parent | Apply fixes for ruff linting (diff) |
Move unshared contants inside modules
Diffstat (limited to 'bot/utils')
-rw-r--r-- | bot/utils/checks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/utils/checks.py b/bot/utils/checks.py index 418bb7ad..f1c2b3ce 100644 --- a/bot/utils/checks.py +++ b/bot/utils/checks.py @@ -9,6 +9,7 @@ from discord.ext.commands import ( from bot import constants log = logging.getLogger(__name__) +CODEJAM_CATEGORY_NAME = "Code Jam" class InWhitelistCheckFailure(CheckFailure): @@ -73,7 +74,7 @@ def in_whitelist_check( return True category = getattr(ctx_channel, "category", None) - if category and category.name == constants.CODEJAM_CATEGORY_NAME: + if category and category.name == CODEJAM_CATEGORY_NAME: log.trace(f"{ctx.author} may use the `{ctx.command.name}` command as they are in a codejam team channel.") return True |