From 9fd12991b6290df6c83124d1e0cf409646baaf95 Mon Sep 17 00:00:00 2001 From: BFlow Date: Fri, 4 Sep 2020 22:25:34 +0200 Subject: [PATCH] correction command clear_cache youtube dl, cmd say --- kabot/kabot/kabot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 3fea73d..0163fb6 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -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('@'):