Fixed Embed Color

This commit is contained in:
Dusty.P 2018-05-05 21:36:43 -08:00
parent e92895f44f
commit 8736abf152
2 changed files with 3 additions and 2 deletions

1
bot.py
View File

@ -47,6 +47,7 @@ class Submitter(commands.Bot):
self.db_con = None self.db_con = None
self.default_prefix = '!' self.default_prefix = '!'
self.tpe = futures.ThreadPoolExecutor() self.tpe = futures.ThreadPoolExecutor()
self.embed_color = discord.Colour.from_rgb(49, 107, 111)
self.unicode_emojis: Dict[str, str] = { self.unicode_emojis: Dict[str, str] = {
'x': '', 'x': '',
'y': '', 'y': '',

View File

@ -21,7 +21,7 @@ class Git:
async def pull(self, ctx): async def pull(self, ctx):
em = discord.Embed(style='rich', em = discord.Embed(style='rich',
title=f'Git Pull', title=f'Git Pull',
color=embed_color) color=self.bot.embed_color)
em.set_thumbnail(url=f'{ctx.guild.me.avatar_url}') 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 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 '
@ -40,7 +40,7 @@ class Git:
async def status(self, ctx): async def status(self, ctx):
em = discord.Embed(style='rich', em = discord.Embed(style='rich',
title=f'Git Pull', title=f'Git Pull',
color=embed_color) color=self.bot.embed_color)
em.set_thumbnail(url=f'{ctx.guild.me.avatar_url}') 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) result = await asyncio.wait_for(self.bot.loop.create_task(run_command('git status')), 10)
results = paginate(result, maxlen=1014) results = paginate(result, maxlen=1014)