aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/christmas/adventofcode.py
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2018-12-02 14:59:56 -0500
committerGravatar Johannes Christ <[email protected]>2018-12-02 20:59:56 +0100
commitc95c96409b1beb5f2d8eb60088f3bd0708ca516f (patch)
tree3e482348df879dcbdf171b701ab263879b269528 /bot/seasons/christmas/adventofcode.py
parentAoC countdown (#81) (diff)
Add private board membership total to embed (#82)
* Add private board membership total to embed * Fix flake8, description typo
Diffstat (limited to '')
-rw-r--r--bot/seasons/christmas/adventofcode.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/seasons/christmas/adventofcode.py b/bot/seasons/christmas/adventofcode.py
index 9cdb7b4e..4c766703 100644
--- a/bot/seasons/christmas/adventofcode.py
+++ b/bot/seasons/christmas/adventofcode.py
@@ -208,7 +208,11 @@ class AdventOfCode:
table = AocPrivateLeaderboard.build_leaderboard_embed(members_to_print)
# Build embed
- aoc_embed = discord.Embed(colour=Colours.soft_green, timestamp=self.cached_private_leaderboard.last_updated)
+ aoc_embed = discord.Embed(
+ description=f"Total members: {len(self.cached_private_leaderboard.members)}",
+ colour=Colours.soft_green,
+ timestamp=self.cached_private_leaderboard.last_updated
+ )
aoc_embed.set_author(name="Advent of Code", url=self.private_leaderboard_url)
aoc_embed.set_footer(text="Last Updated")