From 0df12b943e28a67141b8378f848f62b798ff0543 Mon Sep 17 00:00:00 2001 From: Jake Moss Date: Sun, 10 Mar 2024 06:59:12 +1000 Subject: [PATCH] Add lichen cat (#196) * Add lichen cat * Add code fence and use join * Ugh, missing comma * Sometimes it's useful to run the code before you commit * Didn't realise this was part of the command description, fancy stuff --- uqcsbot/cat.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/uqcsbot/cat.py b/uqcsbot/cat.py index 7a3d7a06..86ccd55b 100644 --- a/uqcsbot/cat.py +++ b/uqcsbot/cat.py @@ -16,6 +16,21 @@ async def cat(self, interaction: discord.Interaction): Displays the moss cat. Brings torture to CSSE2310 students. """ + if randrange(0, 100) == 0: + cat = "\n".join( + ( + "```", + r""" |\ _,,,---,,_ """, + r""" /,`.-'`' -. ;-;;,_" """, + r""" |,4- ) )-,_. ,\ ( `'-'" """, + r""" '---''(_/--' `-'\_) """, + "```", + ) + ) + + await interaction.response.send_message(cat) + return + # ansi colour codes pink = "\u001b[0;35m" red = "\u001b[0;31m"