fix update error

This commit is contained in:
Milka64 2021-01-04 18:33:48 +01:00
parent de994a3592
commit 1861f39450

View file

@ -172,9 +172,8 @@ class Mybot(commands.Cog):
@commands.command(help='Update local repo') @commands.command(help='Update local repo')
async def update(self, message): async def update(self, message):
output = Popen('git pull'.split(), stdout=PIPE).communicate()[0] 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 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')) await message.channel.send(output.decode('utf-8'))
#Fin des commandes pour interagir avec Kabot. #Fin des commandes pour interagir avec Kabot.