mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Remove cog check from testcog
This commit is contained in:
parent
416b13c9ac
commit
f25bb468b4
1 changed files with 9 additions and 2 deletions
|
|
@ -7,9 +7,16 @@ class TestCog(commands.Cog):
|
||||||
def __init__(self, client):
|
def __init__(self, client):
|
||||||
self.client = client
|
self.client = client
|
||||||
|
|
||||||
# All commands in this Cog should only be accessible to me
|
|
||||||
def cog_check(self, ctx):
|
def cog_check(self, ctx):
|
||||||
return checks.isMe(ctx)
|
"""
|
||||||
|
Check executed for every command in this cog.
|
||||||
|
|
||||||
|
If necessary, create your own check here. A check is just a function
|
||||||
|
that returns True or False, and takes ctx as an argument. A command will
|
||||||
|
only be executed when this check returns True, which is why that is the default
|
||||||
|
implementation for this function.
|
||||||
|
"""
|
||||||
|
return True
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def test(self, ctx):
|
async def test(self, ctx):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue