From 40394faa15be78d380a4f1c37283e5acc0da8bdd Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 2 Dec 2022 17:41:39 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Linting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cogs/info/stats.py | 4 +++- cogs/misc/autotranslate.py | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cogs/info/stats.py b/cogs/info/stats.py index 6e757ba2..06843eb2 100644 --- a/cogs/info/stats.py +++ b/cogs/info/stats.py @@ -36,7 +36,9 @@ async def stats(self, interaction): f"**🏓 Ping**: {round(self.bot.latency * 1000)} ms.", ] if latest_version > self.bot.version: - general.append(f"**<:new_left:1032293616175038536><:new_right:1032293617936633967> Latest version**: {latest_version}") + general.append( + f"**<:new_left:1032293616175038536><:new_right:1032293617936633967> Latest version**: {latest_version}" + ) cpu_info = get_cpu_info() system = [ f"**🖥️ Platform**: {operating_systems[sys.platform]}", diff --git a/cogs/misc/autotranslate.py b/cogs/misc/autotranslate.py index 5aa1d481..19e2ef7c 100644 --- a/cogs/misc/autotranslate.py +++ b/cogs/misc/autotranslate.py @@ -80,7 +80,11 @@ async def on_message(self, message: discord.Message): if data["language"] != guild_language: try: await message.reply( - "> " + (await translate(message.content, guild_language)).replace("\n", "\n> ") + f"\n\n` {data['language']} ➜ {guild_language} | {round(data['confidence'])} `", + "> " + + ( + await translate(message.content, guild_language) + ).replace("\n", "\n> ") + + f"\n\n` {data['language']} ➜ {guild_language} | {round(data['confidence'])} `", allowed_mentions=discord.AllowedMentions.none(), mention_author=False, )