Skip to content

Commit

Permalink
Fixing activity monitoring and activity notice issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikey committed Dec 31, 2023
1 parent 27e07cf commit d239e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions cogs/ActivityMonitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ async def activity_show(self, ctx: commands.Context, duration: str):
title=f"Activity Report ({duration})",
color=BLANK_COLOR
)
embed.add_field(
name="Leaderboard",
value=leaderboard_string,
inline=False
)
embed.description = f"**Leaderboard**\n{leaderboard_string}"
embed.set_author(
name=ctx.guild.name,
icon_url=ctx.guild.icon.url if ctx.guild.icon else ''
Expand Down
4 changes: 2 additions & 2 deletions cogs/ActivityNotices.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def send_activity_request(self, guild: discord.Guild, staff_channel: disco
value=(
f"<:replytop:1138257149705863209> **Type:** {request_type}\n"
f"<:replymiddle:1138257195121791046> **Reason:** {schema['reason']}\n"
f"<:replymiddle:1138257195121791046> **Starts At:** <t:{schema['started_at']}>\n"
f"<:replymiddle:1138257195121791046> **Starts At:** <t:{schema.get('started_at', int(schema['_id'].split('_')[2]))}>\n"
f"<:replybottom:1138257250448855090> **Ends At:** <t:{schema['expiry']}>"
)
)
Expand Down Expand Up @@ -513,7 +513,7 @@ def setup_embed() -> discord.Embed:
value=(
f"<:replytop:1138257149705863209> **Staff:** <@{item['user_id']}>\n"
f"<:replymiddle:1138257195121791046> **Reason:** {item['reason']}\n"
f"<:replymiddle:1138257195121791046> **Started At:** <t:{int(item['started_at'])}>\n"
f"<:replymiddle:1138257195121791046> **Started At:** <t:{int(item.get('started_at', int(item['_id'].split('_')[2])))}>\n"
f"<:replybottom:1138257250448855090> **Ended At:** <t:{int(item['expiry'])}>"
),
inline=False
Expand Down

0 comments on commit d239e75

Please sign in to comment.