aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-11-30 17:42:13 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2020-11-30 17:42:13 +0100
commit9173abcfefd1e6bf9de3ae1d5f6fcd392b3e8788 (patch)
treed1a18a9443ad399793ed1964a6e31384a1792cd5 /bot
parentEnable AOC commands before December (diff)
Add note about refresh time to info embed
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/christmas/advent_of_code/_helpers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/christmas/advent_of_code/_helpers.py b/bot/exts/christmas/advent_of_code/_helpers.py
index 7ac54322..72c1ce20 100644
--- a/bot/exts/christmas/advent_of_code/_helpers.py
+++ b/bot/exts/christmas/advent_of_code/_helpers.py
@@ -243,10 +243,12 @@ async def fetch_leaderboard(invalidate_cache: bool = False) -> dict:
def get_summary_embed(leaderboard: dict) -> discord.Embed:
"""Get an embed with the current summary stats of the leaderboard."""
leaderboard_url = leaderboard['full_leaderboard_url']
+ refresh_minutes = AdventOfCode.leaderboard_cache_expiry_seconds // 60
aoc_embed = discord.Embed(
colour=Colours.soft_green,
timestamp=datetime.datetime.fromisoformat(leaderboard["leaderboard_fetched_at"]),
+ description=f"*The leaderboard is refreshed every {refresh_minutes} minutes.*"
)
aoc_embed.add_field(
name="Number of Participants",