From e8a03c005975f10fb329bfce96c04ca9af726d69 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Tue, 14 May 2024 17:49:35 +0100 Subject: [PATCH] fix gay spam --- src/cogs/gay_meter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cogs/gay_meter.py b/src/cogs/gay_meter.py index 5ed7a59..608f6c5 100644 --- a/src/cogs/gay_meter.py +++ b/src/cogs/gay_meter.py @@ -17,12 +17,13 @@ class MeterCog(commands.Cog): """Checks how gay someone is""" user = user or ctx.user + await ctx.respond("Calculating...") for i in range(0, 125, 25): - await ctx.respond("Calculating... %d%%" % i) + await ctx.edit(content="Calculating... %d%%" % i) await asyncio.sleep(random.randint(1, 30) / 10) pct = user.id % 100 - await ctx.respond(f"{user.mention} is {pct}% gay.") + await ctx.edit(content=f"{user.mention} is {pct}% gay.") @commands.slash_command(name="penis-length") async def penis_meter(self, ctx: discord.ApplicationContext, user: discord.User = None):