Skip to content

Commit 42bc448

Browse files
authored
countryball: use configured slow prompt (#713)
* Improve response for already caught countryball (button) * Remove unused player lookup in catch_button
1 parent 20e9059 commit 42bc448

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ballsdex/packages/countryballs/countryball.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,14 @@ async def on_timeout(self):
146146
@button(style=discord.ButtonStyle.primary, label="Catch me!")
147147
async def catch_button(self, interaction: discord.Interaction["BallsDexBot"], button: Button):
148148
if self.caught:
149-
await interaction.response.send_message("I was caught already!", ephemeral=True)
149+
slow_message = settings.get_random_message(PromptMessage.PromptType.SLOW).format(
150+
user=interaction.user.mention,
151+
collectible=settings.collectible_name,
152+
ball=self.name,
153+
collectibles=settings.plural_collectible_name,
154+
emoji=interaction.client.get_emoji(self.model.emoji_id),
155+
)
156+
await interaction.response.send_message(slow_message, ephemeral=True)
150157
else:
151158
await interaction.response.send_modal(CountryballNamePrompt(self))
152159

0 commit comments

Comments
 (0)