diff options
Diffstat (limited to 'bot/utils/checks.py')
-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 |