diff options
author | 2021-12-02 15:33:29 -0700 | |
---|---|---|
committer | 2021-12-02 15:33:29 -0700 | |
commit | 4a06ec80cc9e78294475ab23c41649d47798cca4 (patch) | |
tree | 1085018341bd12a665cb20fbd7c3cc2c9fa2365d | |
parent | Shorten parameter name for .aoc lb (diff) |
Note that only one layer of quotes is stripped in .aoc lb
-rw-r--r-- | bot/exts/events/advent_of_code/_cog.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/events/advent_of_code/_cog.py b/bot/exts/events/advent_of_code/_cog.py index 0f6739fc..9ae2d059 100644 --- a/bot/exts/events/advent_of_code/_cog.py +++ b/bot/exts/events/advent_of_code/_cog.py @@ -224,7 +224,9 @@ class AdventOfCode(commands.Cog): Additionally you can specify an `aoc_name` that will append the specified profile's personal stats to the top of the leaderboard """ - # Strip quotes from the self placement name if needed (e.g. "My Name" -> My Name) + # Strip quotes from the AoC username if needed (e.g. "My Name" -> My Name) + # Note: only strips one layer of quotes to allow names with quotes at the start and end + # e.g. ""My Name"" -> "My Name" if aoc_name and aoc_name.startswith('"') and aoc_name.endswith('"'): aoc_name = aoc_name[1:-1] |