Added typing to git command
This commit is contained in:
parent
8a1d5e9fca
commit
e791887485
@ -48,6 +48,7 @@ class Git:
|
|||||||
@git.command()
|
@git.command()
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def pull(self, ctx):
|
async def pull(self, ctx):
|
||||||
|
async with ctx.typing():
|
||||||
em = discord.Embed(style='rich',
|
em = discord.Embed(style='rich',
|
||||||
title=f'Git Pull',
|
title=f'Git Pull',
|
||||||
color=self.bot.embed_color)
|
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 fetch --all')), 120) + '\n'
|
||||||
result += await asyncio.wait_for(self.bot.loop.create_task(run_command('git reset --hard '
|
result += await asyncio.wait_for(self.bot.loop.create_task(run_command('git reset --hard '
|
||||||
'origin/$(git '
|
'origin/$(git '
|
||||||
'rev-parse --symbolic-full-name'
|
'rev-parse --symbolic-full-name '
|
||||||
' --abbrev-ref HEAD)')), 120) + '\n\n'
|
'--abbrev-ref HEAD)')), 120) + '\n\n'
|
||||||
result += await asyncio.wait_for(self.bot.loop.create_task(run_command('git show --stat | '
|
result += await asyncio.wait_for(self.bot.loop.create_task(run_command('git show --stat | '
|
||||||
'sed "s/.*@.*[.].*/ /g"')), 10)
|
'sed "s/.*@.*[.].*/ /g"')), 10)
|
||||||
results = paginate(result, maxlen=1014)
|
results = paginate(result, maxlen=1014)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user