Skip to content

Commit

Permalink
adds ".divorce" command (#40)
Browse files Browse the repository at this point in the history
Co-authored-by: alec-b-williams <[email protected]>
  • Loading branch information
epochayur and alec-b-williams authored Apr 20, 2023
1 parent 4eb7cad commit 9998451
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pet/pets.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ def __init__(self, bot):

self.dangerous_microwave_objects_regex = re.compile("|".join(self.dangerous_microwave_objects))

self.divorce_results = ["takes the dog", "takes the kids", "takes the house", "wins alimony"]

@commands.command()
async def pet(self, ctx, *, name: str):
"""
Expand Down Expand Up @@ -833,6 +835,27 @@ async def setspouse(self, ctx, *, name: str):
)
)

@commands.command()
async def divorce(self, ctx, *, name: str):
"""
Wow, thanks a lot Henry VIII
"""
if random.random() > 0.9:
await ctx.send(
"{} files for divorce from {}. However, they manage to resolve things peacefully!".format(
ctx.author.mention, name
)
)
else:
await ctx.send(
"{} files for divorce from {}. {} {}!".format(
ctx.author.mention,
name,
name,
random.choice(self.divorce_results)
)
)

@commands.command()
async def choom(self, ctx, *, member: discord.Member):
"""
Expand Down

0 comments on commit 9998451

Please sign in to comment.