Skip to content

Commit

Permalink
Add timestamp to stats message
Browse files Browse the repository at this point in the history
  • Loading branch information
TanyaPegasus authored and connorhsm committed Aug 18, 2023
1 parent 84bfa84 commit d92d0e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dictator/cogs/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ async def prepare_stats(self) -> bool:
async def update_stats(self) -> None:
server_info, families, family_count = await self.get_server_stats()
embed = discord.Embed(title="Stats", colour=0xFFBB35)
embed.timestamp = discord.utils.utcnow()
embed.add_field(name="Players", value=server_info[2])
embed.add_field(name=f"Families", value=f"{family_count} total\n{families}", inline=False)
embed.set_footer(
Expand Down

0 comments on commit d92d0e4

Please sign in to comment.