fix update error
This commit is contained in:
parent
de994a3592
commit
1861f39450
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue