correction command clear_cache youtube dl, cmd say
This commit is contained in:
parent
0995303080
commit
9fd12991b6
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ class Mybot(commands.Cog):
|
||||||
async def cache_clear(self, ctx):
|
async def cache_clear(self, ctx):
|
||||||
fichiers = os.listdir('/tmp')
|
fichiers = os.listdir('/tmp')
|
||||||
for fichier in fichiers:
|
for fichier in fichiers:
|
||||||
if fichier.starwith('discord'):
|
if fichier.startswith('discord'):
|
||||||
os.remove("/tmp/" + fichier)
|
os.remove("/tmp/" + fichier)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
|
@ -362,7 +362,7 @@ class Mybot(commands.Cog):
|
||||||
if sentence.startswith('!'):
|
if sentence.startswith('!'):
|
||||||
command_name = sentence.split()[0].replace('!', '')
|
command_name = sentence.split()[0].replace('!', '')
|
||||||
cmd = self.bot.get_command(command_name)
|
cmd = self.bot.get_command(command_name)
|
||||||
await cmd.invoke(message)
|
await cmd.invoke(ctx)
|
||||||
else:
|
else:
|
||||||
for word in sentence.split():
|
for word in sentence.split():
|
||||||
if word.startswith('@'):
|
if word.startswith('@'):
|
||||||
|
|
Loading…
Reference in a new issue