Black format fix

pull/172/head
Antoine Rybacki 4 years ago
parent f7dad0aa3f
commit 42bdc64028

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

@ -152,7 +152,9 @@ class LaunchLib(commands.Cog):
if pad_name is not None: if pad_name is not None:
if location_url 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})") em.add_field(name="Launch Pad Name", value=f"[{pad_name}]({location_url})")
else: else:
em.add_field(name="Launch Pad Name", value=pad_name) em.add_field(name="Launch Pad Name", value=pad_name)

Loading…
Cancel
Save