fix gay spam
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s

This commit is contained in:
Nexus 2024-05-14 17:49:35 +01:00
parent 421fece6be
commit e8a03c0059

View file

@ -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):