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