From 999845103a2e3e1858c5abe4c42067efd552c322 Mon Sep 17 00:00:00 2001 From: Epoc <32695675+epochayur@users.noreply.github.com> Date: Thu, 20 Apr 2023 13:22:50 -0700 Subject: [PATCH] adds ".divorce" command (#40) Co-authored-by: alec-b-williams --- pet/pets.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pet/pets.py b/pet/pets.py index d9e0308..5c02b4f 100644 --- a/pet/pets.py +++ b/pet/pets.py @@ -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): """ @@ -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): """