From fac80ea58fbc7bbb9b62790ee177979dc36c7299 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:31:59 +0530 Subject: [PATCH] Add `/hackertext` command to turn any text into m4st3r h4xx0r text --- cogs/fun.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cogs/fun.py b/cogs/fun.py index d67af9ec..221eb4c8 100644 --- a/cogs/fun.py +++ b/cogs/fun.py @@ -73,5 +73,22 @@ async def owoify(self, ctx: ApplicationContext, text: str): text += random.choice([" uwu", " owo", " UwU", " OwO", " XDDD", " :D", " ;-;", " <3", " ^-^", " >-<"]) await ctx.respond(text) + @commands.slash_command( + name="hackertext", + description="Turn any text into m4st3r h4xx0r text." + ) + @option(name="text", description="The text that you want to convert", type=str) + async def hackertext(self, ctx: ApplicationContext, text: str): + """Turn any text into m4st3r h4xx0r text.""" + text = text.lower() + text = text.replace("a", "4") + text = text.replace("l", "1") + text = text.replace("e", "3") + text = text.replace("o", "0") + text = text.replace("c", "x") + text = text.replace("u", "x") + text = text.replace("t", "7") + await ctx.respond(text) + # Initialization def setup(bot): bot.add_cog(Fun(bot))