diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 4be50ef..3af50eb 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -91,7 +91,7 @@ class Mybot(commands.Cog): os.remove("/tmp/" + fichier) @commands.command() - async def disconnect(self, ctx): + async def leave(self, ctx): if ctx.voice_client.is_connected(): await ctx.guild.voice_client.disconnect() @@ -154,8 +154,8 @@ class Mybot(commands.Cog): @commands.command(help='Restart Bot') async def restart(self, ctx): - cmd = self.bot.get_command('disconnect') - await cmd.invoke(ctx) + cmd = self.bot.get_command('leave') + cmd.invoke(ctx) await self.bot.close() exit()