Skip to content

Commit

Permalink
Show who you're viewing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmax committed Sep 24, 2024
1 parent 7700379 commit bdaa2c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion guessflag/guessflag.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ async def stats(self, ctx, user: discord.User = None):
headers=["Title", "Stats"],
tablefmt="simple",
)
await ctx.send(box(table, lang="prolog"))
user_stats = (
"You are viewing your own" if user == ctx.author else f"You are viewing {user}'s"
)
await ctx.send(f"{user_stats} stats:\n{box(table, lang='prolog')}")


# Too lazy to make a separate file for this class
Expand Down

0 comments on commit bdaa2c4

Please sign in to comment.