Disable isme check on football cog

pull/31/head
Stijn De Clercq 2021-01-26 21:59:22 +01:00
parent 89fdc70813
commit 7fe2689db1
1 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class Football(commands.Cog):
# Don't allow any commands to work when locked # Don't allow any commands to work when locked
def cog_check(self, ctx): def cog_check(self, ctx):
return checks.isMe(ctx) and not self.client.locked return not self.client.locked
@commands.group(name="Jpl", case_insensitive=True, invoke_without_command=True) @commands.group(name="Jpl", case_insensitive=True, invoke_without_command=True)
@commands.check(checks.allowedChannels) @commands.check(checks.allowedChannels)
@ -37,6 +37,5 @@ class Football(commands.Cog):
await ctx.send(getTable()) await ctx.send(getTable())
def setup(client): def setup(client):
client.add_cog(Football(client)) client.add_cog(Football(client))