aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ben Soyka <[email protected]>2021-12-02 15:33:29 -0700
committerGravatar Ben Soyka <[email protected]>2021-12-02 15:33:29 -0700
commit4a06ec80cc9e78294475ab23c41649d47798cca4 (patch)
tree1085018341bd12a665cb20fbd7c3cc2c9fa2365d
parentShorten 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.py4
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]