diff --git a/bot.py b/bot.py index 1488358..ce7e770 100644 --- a/bot.py +++ b/bot.py @@ -47,6 +47,7 @@ class Submitter(commands.Bot): self.db_con = None self.default_prefix = '!' self.tpe = futures.ThreadPoolExecutor() + self.embed_color = discord.Colour.from_rgb(49, 107, 111) self.unicode_emojis: Dict[str, str] = { 'x': '❌', 'y': '✅', diff --git a/exts/git.py b/exts/git.py index 0b7bb5b..b8a3e0b 100644 --- a/exts/git.py +++ b/exts/git.py @@ -21,7 +21,7 @@ class Git: async def pull(self, ctx): em = discord.Embed(style='rich', title=f'Git Pull', - color=embed_color) + color=self.bot.embed_color) em.set_thumbnail(url=f'{ctx.guild.me.avatar_url}') 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 ' @@ -40,7 +40,7 @@ class Git: async def status(self, ctx): em = discord.Embed(style='rich', title=f'Git Pull', - color=embed_color) + color=self.bot.embed_color) em.set_thumbnail(url=f'{ctx.guild.me.avatar_url}') result = await asyncio.wait_for(self.bot.loop.create_task(run_command('git status')), 10) results = paginate(result, maxlen=1014)