From bdf0960764631280ec20dc034d5ade22bae904d3 Mon Sep 17 00:00:00 2001 From: Lilac-Rose Date: Fri, 17 Oct 2025 10:58:05 +0200 Subject: [PATCH] made it so you cant bonk yourself --- commands/bonk.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/bonk.py b/commands/bonk.py index 062721e..85fe6db 100644 --- a/commands/bonk.py +++ b/commands/bonk.py @@ -17,6 +17,10 @@ class Bonk(commands.Cog): if not os.path.exists(self.bonk_path): await interaction.followup.send("Bonk image not found!", ephemeral=True) return + + if user.id == interaction.user.id: + await interaction.followup.send("You cannot bonk yourself", ephemeral=True) + return file = discord.File(self.bonk_path, filename="bonk.png") await interaction.followup.send(