From 4e7953606b09906fe017ce3df930aa908f5d6c82 Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Thu, 3 Aug 2023 17:20:16 +0100 Subject: [PATCH] fix checkin username Hot fix from last LI --- radia/battlefy/objects/player.py | 1 + radia/cogs/checkin.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/radia/battlefy/objects/player.py b/radia/battlefy/objects/player.py index eba91d3..ebf923a 100644 --- a/radia/battlefy/objects/player.py +++ b/radia/battlefy/objects/player.py @@ -35,6 +35,7 @@ def __init__(self, battlefy, discord_field, fc_field): self.discord = self.discord[:-5] elif self.discord.endswith("#0"): self.discord = self.discord[:-2] + # self.discord = self.discord.lower() self.fc = fc_field async def get_discord(self, ctx): diff --git a/radia/cogs/checkin.py b/radia/cogs/checkin.py index 4a6185c..cdb4539 100644 --- a/radia/cogs/checkin.py +++ b/radia/cogs/checkin.py @@ -96,7 +96,7 @@ async def checkin_set(): await ctx.message.add_reaction("❌") return team = await self.database.get_discord_team( - [f"{ctx.author.name}#{ctx.author.discriminator}", str(ctx.author.id)], # Forms list of field to find by + [f"{ctx.author.name}", str(ctx.author.id)], # Forms list of field to find by self._battlefy_id) if team: await checkin_set()