From 8736abf152b4e7b3ff14ce76652bf44b1556a127 Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Sat, 5 May 2018 21:36:43 -0800 Subject: [PATCH] Fixed Embed Color --- bot.py | 1 + exts/git.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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)