Skip to content

Commit

Permalink
Add /hackertext command to turn any text into m4st3r h4xx0r text
Browse files Browse the repository at this point in the history
  • Loading branch information
notsniped committed Mar 21, 2024
1 parent 76d01a1 commit fac80ea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cogs/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit fac80ea

Please sign in to comment.