correction command clear_cache youtube dl, cmd say

This commit is contained in:
BFlow 2020-09-04 22:25:34 +02:00
parent 0995303080
commit 9fd12991b6

View file

@ -87,7 +87,7 @@ class Mybot(commands.Cog):
async def cache_clear(self, ctx):
fichiers = os.listdir('/tmp')
for fichier in fichiers:
if fichier.starwith('discord'):
if fichier.startswith('discord'):
os.remove("/tmp/" + fichier)
@commands.command()
@ -362,7 +362,7 @@ class Mybot(commands.Cog):
if sentence.startswith('!'):
command_name = sentence.split()[0].replace('!', '')
cmd = self.bot.get_command(command_name)
await cmd.invoke(message)
await cmd.invoke(ctx)
else:
for word in sentence.split():
if word.startswith('@'):