From 879cf78cc059e3255837a29e3882ce50d5e4e3c4 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Mon, 16 Jan 2023 08:31:31 +0000 Subject: [PATCH] Format Python code with psf/black push --- cogs/translation_service_cog.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cogs/translation_service_cog.py b/cogs/translation_service_cog.py index c1c9dd4..65c65e1 100644 --- a/cogs/translation_service_cog.py +++ b/cogs/translation_service_cog.py @@ -16,10 +16,10 @@ from services.text_service import TextService ALLOWED_GUILDS = EnvService.get_allowed_guilds() -def build_translation_embed( text, translated_text, translated_language): +def build_translation_embed(text, translated_text, translated_language): """Build an embed for the translation""" embed = discord.Embed( - title=f"Translation to "+translated_language, + title=f"Translation to " + translated_language, color=0x311432, ) embed.add_field(name="Original text", value=text, inline=False) @@ -125,7 +125,9 @@ class TranslateView(discord.ui.View): ) await self.message.reply( mention_author=False, - embed=build_translation_embed(self.message.content, response, select.values[0]), + embed=build_translation_embed( + self.message.content, response, select.values[0] + ), ) await self.selection_message.delete() except aiohttp.ClientResponseError as e: