Skip to content

Commit

Permalink
🚨 Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 2, 2022
1 parent 2987c94 commit 40394fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cogs/info/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]}",
Expand Down
6 changes: 5 additions & 1 deletion cogs/misc/autotranslate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 40394fa

Please sign in to comment.