Skip to content

Commit

Permalink
Merge pull request #325 from PyBotDevs/hackertext-command
Browse files Browse the repository at this point in the history
Add `/hackertext` command to turn any text into m4st3r h4xx0r text
  • Loading branch information
notsniped authored Mar 21, 2024
2 parents 76d01a1 + fac80ea commit 0f81ba7
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 0f81ba7

Please sign in to comment.