Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Jan 19, 2025
1 parent 029f0db commit e1c6c73
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions dictator/cogs/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,19 +277,23 @@ async def whowas(
if not users:
embed = discord.Embed(
title=f"No results for the character '{character_name}'.",
description=f"Found name '{character_name}' from Player ID '{player_id}'"
if player_id
else "",
description=(
f"Found name '{character_name}' from Player ID '{player_id}'"
if player_id
else ""
),
colour=0xFFBB35,
)
await interaction.followup.send(embed=embed)
return

embed = discord.Embed(
title=f"Latest {history} results for the name '{character_name}':",
description=f"Found name '{character_name}' from Player ID '{player_id}'"
if player_id
else "",
description=(
f"Found name '{character_name}' from Player ID '{player_id}'"
if player_id
else ""
),
colour=0xFFBB35,
)
embed.set_author(name=interaction.user.name, icon_url=interaction.user.avatar)
Expand All @@ -304,7 +308,9 @@ async def whowas(
else:
death_time = u[1].replace(tzinfo=timezone.utc)
embed.add_field(name="Game username:", value=f"{u[2]}", inline=True)
embed.add_field(name="Discord user:", value=f"{found_user}", inline=True)
embed.add_field(
name="Discord user:", value=f"{found_user}", inline=True
)
embed.add_field(
name="Died:",
value=f"{discord.utils.format_dt(death_time, 'R')}",
Expand Down

0 comments on commit e1c6c73

Please sign in to comment.