From a48dce53b42ec254335499d36c6fc988028af6c9 Mon Sep 17 00:00:00 2001 From: Amrou Bellalouna Date: Sat, 6 May 2023 13:50:23 +0100 Subject: use the new code jam variable (#1267) --- bot/utils/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/utils') diff --git a/bot/utils/checks.py b/bot/utils/checks.py index 857b6746..f21d2ddd 100644 --- a/bot/utils/checks.py +++ b/bot/utils/checks.py @@ -74,7 +74,7 @@ def in_whitelist_check( return True category = getattr(ctx_channel, "category", None) - if category and category.name == constants.codejam_categories_name: + if category and category.name == constants.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 -- cgit v1.2.3