aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Janine vN <[email protected]>2021-12-03 21:02:28 -0500
committerGravatar Janine vN <[email protected]>2021-12-03 21:51:56 -0500
commitb3a7c79ffb1f4220bad8ca3814d594a9b1b00826 (patch)
tree3da5b4bc2c0318aacee3eda25ea413d87d741c14
parentAdjust wording on log statements to present tense (diff)
Make aoc_name a keyword arguemnt to accept spaces
Makes `aoc_name` in the link command a keyword only argument. This allows users to link accounts with spaces in the name without having to use quotes.
-rw-r--r--bot/exts/events/advent_of_code/_cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/events/advent_of_code/_cog.py b/bot/exts/events/advent_of_code/_cog.py
index b7d26cb9..55fd0ac6 100644
--- a/bot/exts/events/advent_of_code/_cog.py
+++ b/bot/exts/events/advent_of_code/_cog.py
@@ -183,7 +183,7 @@ class AdventOfCode(commands.Cog):
brief="Tie your Discord account with your Advent of Code name."
)
@whitelist_override(channels=AOC_WHITELIST)
- async def aoc_link_account(self, ctx: commands.Context, aoc_name: str = None) -> None:
+ async def aoc_link_account(self, ctx: commands.Context, *, aoc_name: str = None) -> None:
"""
Link your Discord Account to your Advent of Code name.