|
|
|
|
@ -41,23 +41,21 @@ class Git:
|
|
|
|
|
pag.add('\uFFF7\n\uFFF8')
|
|
|
|
|
pag.add(await asyncio.wait_for(self.bot.loop.create_task(run_command('git show --stat | '
|
|
|
|
|
'sed "s/.*@.*[.].*/ /g"')), 10))
|
|
|
|
|
msg = await ctx.send('Starting Book')
|
|
|
|
|
book = Book(pag, (msg, ctx.channel, self.bot, ctx.message))
|
|
|
|
|
book = Book(pag, (None, ctx.channel, self.bot, ctx.message))
|
|
|
|
|
await book.create_book()
|
|
|
|
|
|
|
|
|
|
@git.command()
|
|
|
|
|
@commands.is_owner()
|
|
|
|
|
async def status(self, ctx):
|
|
|
|
|
pag = Paginator(max_line_length=60, max_lines=30, max_chars=1014)
|
|
|
|
|
em = discord.Embed(style='rich',
|
|
|
|
|
title=f'Git Pull',
|
|
|
|
|
color=embed_color)
|
|
|
|
|
em.set_thumbnail(url=f'{ctx.guild.me.avatar_url}')
|
|
|
|
|
pag = Paginator(self.bot, max_line_length=60, max_lines=30, max_chars=1014)
|
|
|
|
|
pag.set_embed_meta(title='Git Status',
|
|
|
|
|
color=self.bot.embed_color,
|
|
|
|
|
thumbnail=f'{ctx.guild.me.avatar_url}')
|
|
|
|
|
result = await asyncio.wait_for(self.bot.loop.create_task(run_command('git status')), 10)
|
|
|
|
|
pag.add(result)
|
|
|
|
|
for page in pag.pages():
|
|
|
|
|
em.add_field(name='', value=f'{page}')
|
|
|
|
|
await ctx.send(embed=em)
|
|
|
|
|
book = Book(pag, (None, ctx.channel, self.bot, ctx.message))
|
|
|
|
|
await book.create_book()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def setup(bot):
|
|
|
|
|
|