From 1861f39450acf0c2696a7f13b0331cd9a9f9f063 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Mon, 4 Jan 2021 18:33:48 +0100 Subject: [PATCH] fix update error --- kabot/kabot/kabot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 26c99c3..867632b 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -172,9 +172,8 @@ class Mybot(commands.Cog): @commands.command(help='Update local repo') async def update(self, message): output = Popen('git pull'.split(), stdout=PIPE).communicate()[0] - await message.channel.send(output.decode('utf-8')) cmd_audio = "git -C %s pull" % self.audio_path - output = Popen(cmd_audio.split(), stdout=PIPE).communicate()[0] + output += Popen(cmd_audio.split(), stdout=PIPE).communicate()[0] await message.channel.send(output.decode('utf-8')) #Fin des commandes pour interagir avec Kabot.