mirror of https://github.com/stijndcl/didier
Disable isme check on football cog
parent
89fdc70813
commit
7fe2689db1
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue