Allow fun commands to be used in #bot-cmds

This commit is contained in:
Ave Ozkal 2019-01-29 13:16:48 +03:00
parent c1b1d73f6a
commit 707b77e0d2
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -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)