From 707b77e0d2b6f09ada62496a9f2145cf9765472d Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Tue, 29 Jan 2019 13:16:48 +0300 Subject: [PATCH] Allow fun commands to be used in #bot-cmds --- helpers/checks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/checks.py b/helpers/checks.py index 3bed73c..b0df22d 100644 --- a/helpers/checks.py +++ b/helpers/checks.py @@ -17,5 +17,6 @@ def check_if_staff_or_ot(ctx): if not ctx.guild: return True is_ot = (ctx.channel.name == "off-topic") + is_bot_cmds = (ctx.channel.name == "bot-cmds") is_staff = any(r.id in config.staff_role_ids for r in ctx.author.roles) - return (is_ot or is_staff) + return (is_ot or is_staff or is_bot_cmds)