Black format fix

This commit is contained in:
Antoine Rybacki 2021-03-15 14:29:34 +01:00
parent f7dad0aa3f
commit 42bdc64028
2 changed files with 4 additions and 2 deletions

View File

@ -503,7 +503,7 @@ class Chatter(Cog):
# is_reply = False # this is only useful with in_response_to
if (
message.reference is not None
and isinstance(message.reference.resolved,discord.Message)
and isinstance(message.reference.resolved, discord.Message)
and message.reference.resolved.author.id == self.bot.user.id
):
# is_reply = True # this is only useful with in_response_to

View File

@ -152,7 +152,9 @@ class LaunchLib(commands.Cog):
if pad_name is not None:
if location_url is not None:
location_url = re.sub("[^a-zA-Z0-9/:.'+\"°?=,-]", "", location_url) # Fix bad URLS
location_url = re.sub(
"[^a-zA-Z0-9/:.'+\"°?=,-]", "", location_url
) # Fix bad URLS
em.add_field(name="Launch Pad Name", value=f"[{pad_name}]({location_url})")
else:
em.add_field(name="Launch Pad Name", value=pad_name)