Skip to content

Commit

Permalink
Update server stats embed color to white and format recent members' j…
Browse files Browse the repository at this point in the history
…oin date with relative timestamps
  • Loading branch information
MegumiKatou02 committed Jan 10, 2025
1 parent 298df5d commit 36d53b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cogs/stats/server_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def server_stats(self, interaction: discord.Interaction):

embed = discord.Embed(
title=f"Thống Kê Server: {guild.name}",
color=0x67ff4f
color=0xFFFFFF
)
embed.add_field(name="Tổng số thành viên", value=total_members, inline=False)
embed.add_field(name="Số thành viên (người)", value=total_users, inline=True)
Expand Down
5 changes: 3 additions & 2 deletions cogs/user/recent_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ async def recent_members(self, interaction: discord.Interaction):

member_info = []
for member in recent_members:
join_date = member.joined_at.strftime('%d-%m-%Y %H:%M:%S')
member_info.append(f"**{member.name}** - Tham gia vào: {join_date}")
join_date = f"<t:{int(member.joined_at.timestamp())}>"
join_long = f"<t:{int(member.joined_at.timestamp())}:R>"
member_info.append(f"**{member.name}** - {join_date} ({join_long})")

embed = discord.Embed(
title="Các thành viên tham gia gần đây",
Expand Down

0 comments on commit 36d53b0

Please sign in to comment.