diff options
| author | 2021-12-04 10:55:49 -0500 | |
|---|---|---|
| committer | 2021-12-04 10:55:49 -0500 | |
| commit | f4324a0f447a7791743ce9a5c4f0957f32738b78 (patch) | |
| tree | fe8ff1085305f96e8c1d9579767ff2ca51f511cf /bot | |
| parent | Adjust `.aoc lb` to use linked account in cache (diff) | |
Adjust variable name for clarity and add space
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/exts/events/advent_of_code/_cog.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/bot/exts/events/advent_of_code/_cog.py b/bot/exts/events/advent_of_code/_cog.py index 49b604ab..52254ea1 100644 --- a/bot/exts/events/advent_of_code/_cog.py +++ b/bot/exts/events/advent_of_code/_cog.py @@ -193,14 +193,14 @@ class AdventOfCode(commands.Cog):          Stored in a Redis Cache with the format of `Discord ID: Advent of Code Name`          """          cache_items = await self.account_links.items() -        cache_aoc_name = [value for _, value in cache_items] +        cache_aoc_names = [value for _, value in cache_items]          if aoc_name:              # Let's check the current values in the cache to make sure it isn't already tied to a different account              if aoc_name == await self.account_links.get(ctx.author.id):                  await ctx.reply(f"{aoc_name} is already tied to your account.")                  return -            elif aoc_name in cache_aoc_name: +            elif aoc_name in cache_aoc_names:                  log.info(                      f"{ctx.author} ({ctx.author.id}) tried to connect their account to {aoc_name},"                      " but it's already connected to another user." @@ -213,7 +213,7 @@ class AdventOfCode(commands.Cog):              # Update an existing link              if old_aoc_name := await self.account_links.get(ctx.author.id): -                log.info(f"Changing link for{ctx.author} ({ctx.author.id}) from {old_aoc_name} to {aoc_name}.") +                log.info(f"Changing link for {ctx.author} ({ctx.author.id}) from {old_aoc_name} to {aoc_name}.")                  await self.account_links.set(ctx.author.id, aoc_name)                  await ctx.reply(f"Your linked account has been changed to {aoc_name}.")              else: | 
