diff options
| author | 2018-12-02 14:59:56 -0500 | |
|---|---|---|
| committer | 2018-12-02 20:59:56 +0100 | |
| commit | c95c96409b1beb5f2d8eb60088f3bd0708ca516f (patch) | |
| tree | 3e482348df879dcbdf171b701ab263879b269528 | |
| parent | AoC countdown (#81) (diff) | |
Add private board membership total to embed (#82)
* Add private board membership total to embed
* Fix flake8, description typo
| -rw-r--r-- | bot/resources/advent_of_code/about.json | 2 | ||||
| -rw-r--r-- | bot/seasons/christmas/adventofcode.py | 6 | 
2 files changed, 6 insertions, 2 deletions
diff --git a/bot/resources/advent_of_code/about.json b/bot/resources/advent_of_code/about.json index 846f508f..3fe6fcc9 100644 --- a/bot/resources/advent_of_code/about.json +++ b/bot/resources/advent_of_code/about.json @@ -1,7 +1,7 @@  [      {          "name": "What is Advent of Code?", -        "value": "Advent of Code (AoC) is an series of small programming puzzles for a variety of skill levels, run every year during the month of December.\n\nThey are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.", +        "value": "Advent of Code (AoC) is a series of small programming puzzles for a variety of skill levels, run every year during the month of December.\n\nThey are self-contained and are just as appropriate for an expert who wants to stay sharp as they are for a beginner who is just learning to code. Each puzzle calls upon different skills and has two parts that build on a theme.",          "inline": false      },      { 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")  |