Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Make user with degen role an actual degen
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskDuck committed Jun 14, 2024
1 parent 56275bc commit 989ce46
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions _orangcbot/extensions/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
# return _randommer_api_key != None
# return commands.check(predicate)

DEGENERATE_ROLE_ID: Literal[1238746465111642122] = 1238746465111642122


# async def _request_randommer(*, params, path):
# async with aiohttp.ClientSession() as session:
Expand Down Expand Up @@ -244,6 +246,8 @@ async def moral(
state = "Beneath contempt"
elif member.id == 961063229168164864: # type: ignore[reportOptionalMemberAccess]
state = "Degenerate"
elif member.get_role(DEGENERATE_ROLE_ID):
state = r"Degenerate\*"
else:
state = choice(_morals)

Expand All @@ -260,7 +264,8 @@ async def see_moral(
state = "Beneath contempt"
elif member.id == 961063229168164864:
state = "Degenerate"

elif member.get_role(DEGENERATE_ROLE_ID):
state = r"Degenerate\*"
else:
state = choice(_morals)
await interaction.response.send_message(
Expand Down Expand Up @@ -366,7 +371,7 @@ async def ubdict(
async def moral(
self,
interaction: Interaction,
member: nextcord.User = SlashOption(
member: nextcord.Member = SlashOption(
description="The user you want to see the moral.", required=False
),
) -> None:
Expand All @@ -378,6 +383,8 @@ async def moral(
state = "Beneath contempt"
elif member.id == 961063229168164864:
state = "Degenerate"
elif member.get_role(DEGENERATE_ROLE_ID):
state = r"Degenerate\*"

else:
state = choice(_morals)
Expand Down

0 comments on commit 989ce46

Please sign in to comment.