Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /howgay command to rate the gayness of a user #383

Merged
merged 1 commit into from
May 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions cogs/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,35 @@ async def randomnumber(self, ctx: ApplicationContext, x: int, y: int):
return await ctx.respond(":x: Your minimum limit needs to be lower than the maximum limit!", ephemeral=True)
await ctx.respond(f"Your random number is `{random.randint(x, y)}`\n\nMinimum limit: `{x}`\nMaximum limit: `{y}`")

@commands.slash_command(
name="howgay",
description="See the gay percentage of a person!"
)
@option(name="user", description="The person who you want to gayrate", type=discord.User, default=None)
async def howgay(self, ctx: ApplicationContext, user: discord.User = None):
"""See the gay percentage of a person!"""
if user == None:
user = ctx.author
rating = random.randint(0, 100)
response = str()
if rating == 0:
response = "You are straighter than your bedroom walls!"
elif rating <= 30:
response = "You are the average person in society"
elif rating <= 60:
response = "You're pretty gay tbh"
elif rating <= 90:
response = "You're really gay!"
elif rating <= 99:
response = "You are **extremely gay**!! No cap"
elif rating == 100:
response = "You are ***SUPER*** gay!!! You're so gay you make gay people look straight"
localembed = discord.Embed(
title=f":rainbow_flag: {user.display_name}'s gay rating",
description=f"{user.display_name} is **{rating}%** gay! {response}",
color=discord.Color.random()
)
await ctx.respond(embed=localembed)

# Initialization
def setup(bot): bot.add_cog(Fun(bot))
Loading