Added typing to git command

This commit is contained in:
Dusty.P 2018-05-13 18:23:45 -08:00
parent 8a1d5e9fca
commit e791887485

View File

@ -48,6 +48,7 @@ class Git:
@git.command()
@commands.is_owner()
async def pull(self, ctx):
async with ctx.typing():
em = discord.Embed(style='rich',
title=f'Git Pull',
color=self.bot.embed_color)
@ -55,8 +56,8 @@ class Git:
result = await asyncio.wait_for(self.bot.loop.create_task(run_command('git fetch --all')), 120) + '\n'
result += await asyncio.wait_for(self.bot.loop.create_task(run_command('git reset --hard '
'origin/$(git '
'rev-parse --symbolic-full-name'
' --abbrev-ref HEAD)')), 120) + '\n\n'
'rev-parse --symbolic-full-name '
'--abbrev-ref HEAD)')), 120) + '\n\n'
result += await asyncio.wait_for(self.bot.loop.create_task(run_command('git show --stat | '
'sed "s/.*@.*[.].*/ /g"')), 10)
results = paginate(result, maxlen=1014)