diff --git a/ballsdex/packages/countryballs/components.py b/ballsdex/packages/countryballs/components.py index af7323c0..7ce9f7a7 100755 --- a/ballsdex/packages/countryballs/components.py +++ b/ballsdex/packages/countryballs/components.py @@ -50,7 +50,7 @@ async def on_submit(self, interaction: discord.Interaction["BallsDexBot"]): await interaction.response.defer(thinking=True) player, _ = await Player.get_or_create(discord_id=interaction.user.id) - if self.ball.catched: + if self.ball.caught: await interaction.followup.send( f"{interaction.user.mention} I was caught already!", ephemeral=True, @@ -66,7 +66,7 @@ async def on_submit(self, interaction: discord.Interaction["BallsDexBot"]): possible_names += tuple(x.lower() for x in self.ball.model.translations.split(";")) if self.name.value.lower().strip() in possible_names: - self.ball.catched = True + self.ball.caught = True ball, has_caught_before = await self.catch_ball( interaction.client, cast(discord.Member, interaction.user) ) @@ -176,7 +176,7 @@ async def on_timeout(self): @button(style=discord.ButtonStyle.primary, label="Catch me!") async def catch_button(self, interaction: discord.Interaction["BallsDexBot"], button: Button): - if self.ball.catched: + if self.ball.caught: await interaction.response.send_message("I was caught already!", ephemeral=True) else: await interaction.response.send_modal(CountryballNamePrompt(self.ball, button)) diff --git a/ballsdex/packages/countryballs/countryball.py b/ballsdex/packages/countryballs/countryball.py index a974f745..edec5a5c 100755 --- a/ballsdex/packages/countryballs/countryball.py +++ b/ballsdex/packages/countryballs/countryball.py @@ -18,7 +18,7 @@ def __init__(self, model: Ball): self.model = model self.algo: str | None = None self.message: discord.Message = discord.utils.MISSING - self.catched = False + self.caught = False self.time = datetime.now() self.special: Special | None = None self.atk_bonus: int | None = None