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): 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('@'):